spawn

Function spawn 

Source
pub fn spawn<T>(future: impl Future<Output = T> + 'static) -> Task<T>
Expand description

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