pub(crate) async fn off_worker<T: Send + 'static>(
work: impl FnOnce() -> T + Send + 'static,
) -> Result<T, ToolError>Expand description
Runs CPU-heavy pure work, such as an engine pass over every page, on the blocking pool, so that the worker thread keeps serving other requests meanwhile.