[][src]Function tokio_compat::runtime::current_thread::run_std

pub fn run_std<F>(future: F) where
    F: Future<Output = ()> + '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 std::future ture to bootstrap execution.

Panics

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