block_on

Function block_on 

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

Blocks the current thread on the global task runner until the future is ready.

Only available on native platforms.