From f2172012f30e7de48cea54b4dbbbbaa1195d9a02 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Tue, 25 Sep 2018 11:46:18 -0500 Subject: 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(-) (limited to 'doc/api/globals.md') 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 -- cgit v1.2.3