Skip to main content

spawn

Function spawn 

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

Spawn a task on the current runtime and return its handle.