pub fn get_runtime() -> &'static Runtime
Expand description
Retrieves a reference to a globally shared Tokio runtime. The runtime is lazily initialized on the first call and reused thereafter.
This global runtime is intended for use cases where passing a runtime
around is impractical. The number of OS threads is configured using the
NAUTILUS_WORKER_THREADS
environment variable. If not set, all available
logical CPUs will be used.
ยงPanics
Panics if the runtime could not be created, which typically indicates an inability to spawn threads or allocate necessary resources.