spawn_local

Function spawn_local 

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

Spawns a future that doesn’t implement Send.

The spawned future will be executed on the same thread that called spawn_local.