Skip to main content

block_on

Function block_on 

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

Blocks on a future.

It panics if a future is not ready.