Skip to main content

runtime

Function runtime 

Source
pub fn runtime() -> Handle
Expand description

Returns a Handle to the global Tokio runtime.

If a Tokio runtime is already entered on the current thread, its handle is returned directly. Otherwise a lazily-initialised global runtime is used.