Function tokio::executor::current_thread::run [] [src]

pub fn run<F, R>(f: F) -> R where
    F: FnOnce(&mut Context) -> R, 

Calls the given closure, then block until all futures submitted for execution complete.

In more detail, this function will block until: - All executing futures are complete, or - cancel_all_spawned is invoked.