chore: add TaskManager must_use annotation (#3525)

This commit is contained in:
Matthias Seitz
2023-07-02 12:58:07 +02:00
committed by GitHub
parent 1e3092b770
commit 9fc950697d

View File

@ -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.
///