Skip to main content

init_runtime

Function init_runtime 

Source
pub fn init_runtime() -> Runtime
Expand description

Initializes the thread-local Tokio runtime handle for the current thread.

The returned runtime must be kept alive by the caller for as long as the thread-local helpers are used on this thread.