block_on

Function block_on 

Source
pub fn block_on<F, R>(fut: F) -> R
where F: Future<Output = R> + Send + Sync + 'static, R: Send + Sync + 'static,
Expand description

Run a future to completion.

Starts a new runtime and spawns the future on it.