Skip to main content

spawn

Function spawn 

Source
pub fn spawn<T, F>(runtime: &dyn Runtime, future: F) -> Task<T> ⓘ
where F: Future<Output = T> + Send + 'static, T: Send + 'static,
Expand description

Spawn future on runtime, which needs only its detached spawn.