Skip to main content

spawn_task

Function spawn_task 

Source
pub fn spawn_task<F>(
    pending_tasks: &TaskGroup,
    description: &'static str,
    fut: F,
)
where F: Future<Output = Result<()>> + Send + 'static,
Expand description

Spawns an async task and tracks its handle in pending_tasks.