pub fn block_on<F>(f: F) -> F::Outputwhere F: Future + Send, F::Output: Send,
Run f to completion from synchronous code. Inside a multi-threaded runtime the current thread hands its work over while it waits; elsewhere the shared runtime runs it.
f