pub trait BlockingRuntime: SharedRuntime {
// Required method
fn block_on<F: Future>(&self, f: F) -> Result<F::Output, Error>;
}Expand description
Extension of SharedRuntime for runtimes that can block the current thread on a future.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".