pub fn spawn<F>(future: F)where F: Future<Output = ()> + MaybeSend + 'static,
Spawn a task on the current runtime.
On native platforms, uses tokio::spawn. On WASM, uses wasm_bindgen_futures::spawn_local.
tokio::spawn
wasm_bindgen_futures::spawn_local