Function spawn

Source
pub fn spawn<T, F>(f: F) -> JoinHandle<T> 
where T: 'static, F: Future<Output = T> + 'static,
Expand description

Spawns an asynchronous task that will run in the background.