Skip to main content

block_on

Function block_on 

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

Runs an async future, panicking if the runtime cannot be created.