Skip to main content

block_on

Function block_on 

Source
pub fn block_on<F: IntoFuture>(future: F) -> F::Output
Expand description

Polls a future to completion on the calling runtime scheduler thread.

The executor is local to this call. Its waker may be invoked from another CPU or hard IRQ, while all future polling and destruction remain on the owner thread.