pub fn reset_executor_for_test()Expand description
Completely reset the global executor to a pristine state.
Clears all task slots, queues, deferred ops, flush/scheduler flags,
and injected ScheduleFlush/TimeSource. Call at the start
of every test to prevent cross-test state leakage.
ยงSafety / usage
This function is intended only for testing. Calling it while the executor is processing tasks will silently drop all live futures and may cause panics or undefined behavior in running application code.