Function holochain_util::tokio_helper::block_on
source · pub fn block_on<F>(f: F, timeout: Duration) -> Result<F::Output, Elapsed>where
F: Future,
Expand description
Run a blocking thread on TOKIO
with a timeout.
pub fn block_on<F>(f: F, timeout: Duration) -> Result<F::Output, Elapsed>where
F: Future,
Run a blocking thread on TOKIO
with a timeout.