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.
async fn blocking<T: Send + 'static>(
f: impl FnOnce() -> Result<T, ProcessError> + Send + 'static,
) -> Result<T, ProcessError>Run blocking work off the async workers, turning a panic into an error.