Skip to main content

runtime

Function runtime 

Source
pub fn runtime() -> &'static Runtime
Expand description

Borrow the process-wide Tokio runtime singleton.

Initialized on first access with Tokio’s multi-thread scheduler. Runtime construction failure is treated as process-start failure rather than a recoverable application error.

§Panics

Panics if Tokio cannot create the runtime.