pub fn within_runtime_if_available<F: FnOnce() -> T, T>(f: F) -> T
Expand description

If the feature tokio_rt has been enabled this will enter the runtime context and then call the provided closure. Otherwise it will just call the provided closure.