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

pub fn block_on_all_std<F>(future: F) -> F::Output where
    F: Future
This is supported on (feature="rt-current-thread" or feature="rt-full") and feature="rt-current-thread" only.

Run the provided std::future future to completion using a runtime running on the current thread.

This first creates a new Runtime, and calls Runtime::block_on with the provided future, which blocks the current thread until the provided future completes. It then calls Runtime::run to wait for any other spawned futures to resolve.