Function rt_local::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.