[][src]Function tokio_current_thread::block_on_all

pub fn block_on_all<F>(future: F) -> Result<F::Item, F::Error> where
    F: Future

Run the executor bootstrapping the execution with the provided future.

This creates a new CurrentThread executor, spawns the provided future, and blocks the current thread until the provided future and all subsequently spawned futures complete. In other words:

See module level documentation for more details.