Function foyer_common::asyncify::asyncify_with_runtime

source ยท
pub async fn asyncify_with_runtime<F, T>(runtime: &Handle, f: F) -> T
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

Convert the block call to async call with given runtime.