get_runtime

Function get_runtime 

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

Returns a reference to the global network Tokio runtime.

The runtime is lazily initialized on the first call and reused thereafter.

ยงPanics

Panics if the Tokio runtime fails to build, which should only occur in extremely rare circumstances such as system resource exhaustion.