Function bastion::io::block_on [−]
pub fn block_on<F>(future: F) -> <F as Future>::Output where
F: 'static + Future + Send,
<F as Future>::Output: 'static,
<F as Future>::Output: Send,
Expand description
block_on
will use the global executor instance, which is determined by the cargo features,
to block until the given future has finished.