Skip to main content

spawn

Function spawn 

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

Spawn a task on the current runtime.

On native platforms, uses tokio::spawn. On WASM, uses wasm_bindgen_futures::spawn_local.