Skip to main content

spawn

Function spawn 

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

Spawns a future to run in the background.