[][src]Function tokio_global::single::init

pub fn init() -> Runtime

Initializes new runtime and returns guard that controls its lifetime.

This function must be called prior to any usage of runtime related functionality.

Panics

If runtime is already initialized.