pub fn spawn<F>(future: F) -> JoinHandle<F::Output> ⓘwhere
F: Future + 'static,Expand description
Spawns a !Send future on the current LocalSpawnPool.
The spawned future will run on the same thread that called spawn.
The provided future will start running in the background immediately when spawn is called, even if you don’t await the
returned JoinHandle.