Skip to main content

block_on

Function block_on 

Source
pub fn block_on<F>(future: F) -> <F as Future>::Output
where F: Future,
Expand description

Drive future to completion on the current thread by polling in a loop with a no-op waker.