Skip to main content

spawn

Function spawn 

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

Spawn an async task.

  • Native: Uses tokio::spawn (multi-threaded)
  • WASM: Uses wasm_bindgen_futures::spawn_local (single-threaded)