runtime_raw

Function set_runtime

Source
pub fn set_runtime(runtime: &'static dyn Runtime)
Expand description

Set the current runtime.

This function must be called at the beginning of runtime’s threads before they start polling any futures.