pub fn with_runtime<R>(f: impl FnOnce(&mut Runtime<'_>) -> R) -> R
Run f with the active runtime.
f
Panics if no runtime is installed, or if one is already borrowed (e.g. a re-entrant call from inside another with_runtime).
with_runtime