spawn

Function spawn 

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

Runs a future in the background without having to await it To get the the return value you can await a task.