Skip to main content

spawn

Function spawn 

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

Spawns a future onto the global runtime, returning a cancel-on-drop handle.