Function tokio::fs::asyncify

source ยท
pub(crate) async fn asyncify<F, T>(f: F) -> Result<T>
where F: FnOnce() -> Result<T> + Send + 'static, T: Send + 'static,