mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
Added pausing support for the timer(syntheticTimer) the `AfterFunc` now won't trigger when the kernel is paused. The timer waits for all the AfterFunc functions to complete during Pause. As of right now, all the AfterFunc callbacks are not heavy, so it's okay. When a new afterFunc is created: - The event is added to the synthetic timer queue. - AfterFuncScheduler sleeps until the next event in the queue. - Triggers the expired events and repeats the cycle. PiperOrigin-RevId: 971771243