pub fn block_on<T: Send + 'static, F: Future<Output = T> + Send + 'static>(
future: F,
) -> F::OutputExpand description
Blocks current thread and runs given future until completion.
All task will be cancelled after return.
Uses spawn to spawn assistant tasks.