Skip to main content

block_on

Function block_on 

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

Block on a future whether or not we’re already inside a tokio runtime.