Skip to main content

block_on

Function block_on 

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

Drive future to completion on the current thread, returning its output.

§Panics

Panics if the executor fails to initialise (kqueue/pipe failure).