mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-17 15:25:35 +00:00
Idle callbacks are only appropriate when the event loop has no other runnable work. TaskQueue previously stored idle tasks in the same FIFO list as all other tasks, so an idle callback queued during an idle period could still run ahead of later posted-message work. Keep idle tasks in a separate queue and only select from it after all normal runnable tasks have been considered. This keeps cleanup queued with requestIdleCallback from racing React hydration on Shopify. |
||
|---|---|---|
| .. | ||
| EventLoop.cpp | ||
| EventLoop.h | ||
| Task.cpp | ||
| Task.h | ||
| TaskQueue.cpp | ||
| TaskQueue.h | ||