//! Shared tokio runtime construction.
usestd::future::Future;useanyhow::{Context as_,Result};/// Run `future` on a new multi-thread tokio runtime.
pub(crate)fnblock_on<F: Future>(future: F)->Result<F::Output>{let rt =tokio::runtime::Runtime::new().context("failed to create tokio runtime")?;Ok(rt.block_on(future))}