pub fn spawn_local<F>(future: F) -> Task<<F as Future>::Output>Notable traits for Task<T>impl<T> Future for Task<T>    type Output = T; where
    F: 'static + Future
Expand description

Spawn a future on the current thread.

Panics

Panics if the runtime is not running.