Skip to main content

run_blocking

Function run_blocking 

Source
pub async fn run_blocking<F, R>(f: F) -> Result<R, BlockingError>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Run f off the async workers (native), or inline (wasm32).