Skip to main content

run_blocking_value

Function run_blocking_value 

Source
pub async fn run_blocking_value<F, T>(f: F) -> Result<T, String>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

Run blocking work off the async runtime and return a typed value.