From cf1117bc13f2002546760df160e1512c7d534885 Mon Sep 17 00:00:00 2001 From: Daiki Arai Date: Sun, 26 Mar 2017 23:36:58 +0900 Subject: [PATCH] doc: fix the timing of setImmediate's execution About setImmediate, the execution timing is after timers currently. PR-URL: https://github.com/nodejs/node/pull/12034 Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt Reviewed-By: Yuta Hiroto Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- doc/api/timers.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/api/timers.md b/doc/api/timers.md index df48905001e19b..e62e2e57eda813 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -75,9 +75,7 @@ added: v0.9.1 * `...args` {any} Optional arguments to pass when the `callback` is called. Schedules the "immediate" execution of the `callback` after I/O events' -callbacks and before timers created using [`setTimeout()`][] and -[`setInterval()`][] are triggered. Returns an `Immediate` for use with -[`clearImmediate()`][]. +callbacks. Returns an `Immediate` for use with [`clearImmediate()`][]. When multiple calls to `setImmediate()` are made, the `callback` functions are queued for execution in the order in which they are created. The entire callback