spawn

Function spawn 

Source
pub fn spawn<T>(
    future: impl Future<Output = T> + 'static,
) -> Task<T, TaskMetadata> 
Available on crate feature async only.
Expand description

Spawns a new async task that can be controlled with the returned task handle.