Skip to main content

spawn

Function spawn 

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

Helper function to spawn a task using platform-specific runtime

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