Function tokio_test::block_on

source ·
pub fn block_on<F: Future>(future: F) -> F::Output
Expand description

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

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