pub fn block_on<F: Future>(future: F) -> F::Output
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.