Skip to main content

block_on

Function block_on 

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

Spin-polls f until it resolves. Safe for single-threaded WASM where the host drives re-entry via oo_on_message from within __oo_host_call.