spawn_local

Function spawn_local 

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

Spawn a future on the current thread.

§Panics

Panics if the runtime is not running.