blocking

Function blocking 

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

Runs a blocking filesystem closure on tokio’s blocking pool, flattening a task-join failure (only possible on panic) into an I/O error.