[−][src]Function tokio_compat::runtime::current_thread::run
pub fn run<F>(future: F) where
F: Future01<Item = (), Error = ()> + 'static,
This is supported on (
feature="rt-current-thread"
or feature="rt-full"
) and feature="rt-current-thread"
only.Start a current-thread runtime using the supplied futures
0.1 future to bootstrap execution.
Panics
This function panics if called from the context of an executor.