foyer_common::asyncify

Function asyncify_with_runtime

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

Convert the block call to async call with given runtime handle.