[go: up one dir, main page]

block_on

Function block_on 

Source
pub fn block_on<F>(future: F) -> <F as Future>::Output
where F: Future + Send + 'static, <F as Future>::Output: Send + 'static,
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.