Function block_on

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

Blocks until the future has finished.