summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-03-23 20:27:37 -0700
committerAlexander Early <alexander.early@gmail.com>2016-03-23 20:27:37 -0700
commit4edd500b56d3a8fe803cb2d967b8e690d07b3945 (patch)
tree79c39abe08db44051090c044a77423467d670d01 /README.md
parent57867ab391cf3c4ad79a5a1dad191b1aa0e9d1cb (diff)
downloadasync-4edd500b56d3a8fe803cb2d967b8e690d07b3945.tar.gz
fix docs re: setImmediate in node. Closes #1079
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/README.md b/README.md
index ae181c3..e331362 100644
--- a/README.md
+++ b/README.md
@@ -1727,10 +1727,7 @@ three
### nextTick(callback, [args...]), setImmediate(callback, [args...])
-Calls `callback` on a later loop around the event loop. In Node.js this just
-calls `process.nextTick`; in the browser it falls back to `setImmediate(callback)`
-if available, otherwise `setTimeout(callback, 0)`, which means other higher priority
-events may precede the execution of `callback`.
+Calls `callback` on a later loop around the event loop. In Node.js this just calls `setImmediate`. In the browser it will use `setImmediate` if available, otherwise `setTimeout(callback, 0)`, which means other higher priority events may precede the execution of `callback`.
This is used internally for browser-compatibility purposes.