spawn_local

Function spawn_local 

Source
pub fn spawn_local<F>(future: F) -> Task<<F as Future>::Output> 
where F: Future + 'static,
Expand description

Spawn a future on the current thread.

§Panics

Panics if the runtime is not running.