improve code for global

This commit is contained in:
houseme
2025-04-21 21:39:57 +08:00
parent 5af648230a
commit 6c70c03985
4 changed files with 46 additions and 21 deletions
+5
View File
@@ -66,4 +66,9 @@ impl NotificationSystem {
tracing::info!("Shutting down the notification system");
self.shutdown.cancel();
}
/// shutdown state
pub fn shutdown_cancelled(&self) -> bool {
self.shutdown.is_cancelled()
}
}