Skip to content

Commit e19e2e8

Browse files
authored
fix(learn): update guide for v20 (#8126)
1 parent c6a7ee2 commit e19e2e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/site/pages/en/learn/asynchronous-work/event-loop-timers-and-nexttick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ Between each run of the event loop, Node.js checks if it is waiting for
8888
any asynchronous I/O or timers and shuts down cleanly if there are not
8989
any.
9090

91+
Starting with libuv 1.45.0 (Node.js 20), the event loop behavior
92+
changed to run timers only after the **poll** phase, instead of both before and after
93+
as in earlier versions. This change can affect the timing of `setImmediate()` callbacks
94+
and how they interact with timers in certain scenarios.
95+
9196
## Phases in Detail
9297

9398
### timers

0 commit comments

Comments
 (0)