Function spawn_task

Source
pub fn spawn_task<F>(task: F)
where F: Future + 'static + Send, F::Output: Send + 'static,
Expand description

Spawn a task using the handle to the runtime.