Skip to main content

block_on

Function block_on 

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

Drives an asynchronous tool with a Tokio runtime on its invocation thread: a multi-threaded one where the target has threads, a current-thread one on WebAssembly.