pub fn block_on<T: Send + 'static>(
    future: impl Future<Output = T> + Send + 'static
) -> T
Expand description

Spawns a future onto the global executor and immediately blocks on it.