Skip to main content

spawn_local

Function spawn_local 

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

Helper function to spawn a local task using platform-specific runtime

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