pub fn block_on<T>(future: impl Future<Output = T>) -> T
Blocks on a future.
It panics if a future is not ready.