Function napi::bindgen_prelude::block_on

source ·
pub fn block_on<F: Future>(fut: F) -> F::Output
Expand description

Runs a future to completion This is blocking, meaning that it pauses other execution until the future is complete, only use it when it is absolutely necessary, in other places use async functions instead.