Function block_on

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

Block on a future to complete.

As opentitanlib is currently messy with its use MIO, to aid migration we allow this to be called within async context too.