diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-03-23 20:27:37 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-03-23 20:27:37 -0700 |
commit | 4edd500b56d3a8fe803cb2d967b8e690d07b3945 (patch) | |
tree | 79c39abe08db44051090c044a77423467d670d01 /README.md | |
parent | 57867ab391cf3c4ad79a5a1dad191b1aa0e9d1cb (diff) | |
download | async-4edd500b56d3a8fe803cb2d967b8e690d07b3945.tar.gz |
fix docs re: setImmediate in node. Closes #1079
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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. |