INNER CODE UNIT · Rust
block_on
tangle-network/blueprint · crates/benchmarking/src/lib.rs:92
pub fn block_on<F>(&self, future: F) -> F::Output
where
F: blueprint_std::future::Future,
{
self.runtime.block_on(future)
}
/// Ends the benchmark and returns a summary.
///
/// # Panics
///
/// This will panic in the event it cannot determine the process ID.
///
/// # Examples
///
/// ```no_run
/// use blueprint_benchmarking::{Bencher, TokioRuntime};
/// const THREADS: usize = 4;