pub async fn shutdown(self) {
        let tasks: Vec<(u128, Task<()>)> = self.tasks.lock().await.drain().collect();
        drop(self.tasks);
        for (_, task) in tasks {
            task.await;
        }
    }
// Shuts down this task scope, preventing more tasks from being added.
// Blocks until all tasks are complete.
Shuts down this task scope, preventing more tasks from being added.
Blocks until all tasks are complete.
Shuts down this task scope preventing more tasks from being added . Blocks until all tasks are complete .
pub async fn shutdown(self) {
        let tasks: Vec<(u128, Task<()>)> = self.tasks.lock().await.drain().collect();
        drop(self.tasks);
        for (_, task) in tasks {
            task.await;
        }
    }
pub async fn shutdown ( self ) { let tasks : Vec < ( u128 , Task < ( ) > ) > = self . tasks . lock ( ) . await . drain ( ) . collect ( ) ; drop ( self . tasks ) ; for ( _ , task ) in tasks { task . await ; } }
Shuts down this task scope, preventing more tasks from being added.
Shuts down this task scope preventing more tasks from being added .
self
self