summaryrefslogtreecommitdiff
path: root/doc/api/globals.md
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-09-25 11:46:18 -0500
committerGus Caplan <me@gus.host>2018-10-04 01:27:43 -0500
commitf2172012f30e7de48cea54b4dbbbbaa1195d9a02 (patch)
treed1bc1198e9905d37b379a4a9666d7904b4e20ea3 /doc/api/globals.md
parentc3aaaa70b8203cb1c1a52cc72c6fa005dcce9c44 (diff)
downloadandroid-node-v8-f2172012f30e7de48cea54b4dbbbbaa1195d9a02.tar.gz
android-node-v8-f2172012f30e7de48cea54b4dbbbbaa1195d9a02.tar.bz2
android-node-v8-f2172012f30e7de48cea54b4dbbbbaa1195d9a02.zip
doc: fix confusing language about microtask queue
PR-URL: https://github.com/nodejs/node/pull/23197 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/globals.md')
-rw-r--r--doc/api/globals.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/globals.md b/doc/api/globals.md
index a461dca2ae..82412a899e 100644
--- a/doc/api/globals.md
+++ b/doc/api/globals.md
@@ -123,8 +123,8 @@ The `queueMicrotask()` method queues a microtask to invoke `callback`. If
be emitted.
In general, `queueMicrotask` is the idiomatic choice over `process.nextTick()`.
-`process.nextTick()` will always run before microtasks, and so unexpected
-execution order may be observed.
+`process.nextTick()` will always run before the microtask queue, and so
+unexpected execution order may be observed.
```js
// Here, `queueMicrotask()` is used to ensure the 'load' event is always