mirror of
https://github.com/nodejs/node.git
synced 2026-12-03 18:03:02 -05:00
doc: fix typo in section on microtask order
PR-URL: https://github.com/nodejs/node/pull/59932 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
2426d3f3ff
commit
a2bcb217c6
1 file changed
+1
-1
+1
-1
@@ -2756,7 +2756,7 @@ is drained immediately after.
|
||||
|
||||
So in CJS modules `process.nextTick()` callbacks are always run before `queueMicrotask()` ones.
|
||||
However since ESM modules are processed already as part of the microtask queue, there
|
||||
`queueMicrotask()` callbacks are always exectued before `process.nextTick()` ones since Node.js
|
||||
`queueMicrotask()` callbacks are always executed before `process.nextTick()` ones since Node.js
|
||||
is already in the process of draining the microtask queue.
|
||||
|
||||
```mjs
|
||||
|
||||
Reference in new issue
Block a user