Function tokio_test::block_on[][src]

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::Runtime::block_on.