pub fn try_get_main_runtime() -> Option<Handle>
Returns the main runtime’s handle, or None before assign_main_runtime has run, which is the case in unit tests.
None
assign_main_runtime