diff options
author | Gus Caplan <me@gus.host> | 2018-09-25 11:46:18 -0500 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-10-04 01:27:43 -0500 |
commit | f2172012f30e7de48cea54b4dbbbbaa1195d9a02 (patch) | |
tree | d1bc1198e9905d37b379a4a9666d7904b4e20ea3 /doc/api/globals.md | |
parent | c3aaaa70b8203cb1c1a52cc72c6fa005dcce9c44 (diff) | |
download | android-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.md | 4 |
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 |