/// The method signals the tasks to exit and waits for them to complete.
The method signals the tasks to exit and waits for them to complete.
The method signals the tasks to exit and waits for them to complete .
fn drop(&mut self) {
        self.killed.store(true, SeqCst);
        while let Some(handle) = self.task_handles.pop() {
            async_safe_block_on_await(handle).ok();
        }
        self.event_handler.stop();
    }
fn drop ( & mut self ) { self . killed . store ( true , SeqCst ) ; while let Some ( handle ) = self . task_handles . pop ( ) { async_safe_block_on_await ( handle ) . ok ( ) ; } self . event_handler . stop ( ) ; }
The method signals the tasks to exit and waits for them to complete.
The method signals the tasks to exit and waits for them to complete .
&mut self