Function block_on

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

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

Does not poll all futures to completion.