[][src]Function tokio_test::block_on

pub fn block_on<F: Future>(future: F) -> F::Output

Runs the provided future, blocking the current thread until the future completes.

For more information, see the documentation for tokio::runtime::current_thread::Runtime::block_on.