Function solana_jsonrpc_tcp_server::tokio::runtime::current_thread::block_on_all[][src]

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

Run the provided 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.