block_on

Function block_on 

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

Blocks the current task until a return value can be extracted from the provided future.

Does not poll all futures to completion.