Function tokio::runtime::current_thread::run

source ·
pub fn run<F>(future: F)where
    F: Future<Item = (), Error = ()> + 'static,
Expand description

Start a current-thread runtime using the supplied future to bootstrap execution.

Panics

This function panics if called from the context of an executor.