From 5ed4b8974a6646b4afa5dfa536e7e553e7654389 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Tue, 25 Sep 2018 11:46:18 -0500 Subject: [PATCH] doc: fix confusing language about microtask queue PR-URL: https://github.com/nodejs/node/pull/23197 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- doc/api/globals.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/globals.md b/doc/api/globals.md index a461dca2ae2f3d..82412a899e7c1f 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