Skip to main content

spawn

Function spawn 

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

Spawn a task.

On native, tries the thread-local runtime context first, then falls back to the handle provided via set_runtime_handle.