Skip to main content

block_on

Function block_on 

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

Block on async code (native only).

On WASM, this function is not available - use async methods directly with wasm_bindgen_futures::spawn_local or await.