pub fn spawn<F>(future: F)where F: Future<Output = ()> + Send + 'static,
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.
tokio::spawn
wasm_bindgen_futures::spawn_local