Function tokio::runtime::context::current::with_current

source ยท
pub(crate) fn with_current<F, R>(f: F) -> Result<R, TryCurrentError>
where F: FnOnce(&Handle) -> R,