mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: add TaskManager must_use annotation (#3525)
This commit is contained in:
@ -138,6 +138,7 @@ impl TaskSpawner for TokioTaskExecutor {
|
||||
/// diagnostic purposes, since tokio task essentially fail silently. Therefore, this type is a
|
||||
/// Stream that yields the name of panicked task, See [`TaskExecutor::spawn_critical`]. In order to
|
||||
/// execute Tasks use the [`TaskExecutor`] type [`TaskManager::executor`].
|
||||
#[must_use = "TaskManager must be polled to monitor critical tasks"]
|
||||
pub struct TaskManager {
|
||||
/// Handle to the tokio runtime this task manager is associated with.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user