pub fn spawn_local<F>(f: F)where
    F: Future<Output = ()> + 'static,
Expand description

Spawns a task on current thread.

Panics

This function will panic when not being executed from within the Runtime.