Expand description
Declare a dyn-safe trait for the parts of an asynchronous runtime so that we can install it globally.
Re-exportsยง
use futures::future::BoxFuture;๐use futures::task::Spawn;๐use std::sync::OnceLock;๐use web_time_compat::Duration;๐use web_time_compat::Instant;๐
Enumsยง
- Install
Runtime Error - An error that occurs while installing a runtime.
Staticsยง
- RUNTIME_
SUPPORT ๐ - A global view of our runtime, used for rate-limited logging.
Traitsยง
- Runtime
Support - A dyn-safe view of the parts of an async runtime that we need for rate-limiting.
Functionsยง
- install_
runtime - Try to install
runtimeas a global runtime to be used for rate-limited logging. - rt_
support - Return the installed runtime, if there is one.