Function block_on

Source
pub fn block_on<O>(fut: impl Future<Output = O>) -> O
Expand description

Block until the future is completed and returns the result.