Skip to main content

spawn

Function spawn 

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

Starts future as a separate task, which runs while this one waits.