asyncify_with_runtime

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.