Skip to main content

blocking

Function blocking 

Source
async fn blocking<T: Send + 'static>(
    f: impl FnOnce() -> Result<T, ProcessError> + Send + 'static,
) -> Result<T, ProcessError>
Expand description

Run blocking work off the async workers, turning a panic into an error.