spawn

Function spawn 

Source
fn spawn(f: impl Future<Output = ()> + 'static)
Expand description

Runs a future to completion. On native this blocks synchronously via pollster. On wasm this spawns a local task so control returns to the browser immediately.