try_get_main_runtime

Function try_get_main_runtime 

Source
pub fn try_get_main_runtime() -> Option<Handle>
Expand description

Returns the main runtime’s handle, or None before assign_main_runtime has run, which is the case in unit tests.