Skip to main content

block_on

Function block_on 

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

A safe utility function to block on an async future using the global multi-threaded runtime.