diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2012-08-07 22:12:01 -0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-08-12 00:07:22 +0200 |
commit | 382f22f22959e686b10a5f42333c468e6654cb97 (patch) | |
tree | 643db0defa3796d0dd94b64cb419864b800eeb9f /src | |
parent | d15bfc04cde2bbfb2ce534639255dfcdab3cfcb3 (diff) | |
download | node-new-382f22f22959e686b10a5f42333c468e6654cb97.tar.gz |
timers: implement setImmediate
Diffstat (limited to 'src')
-rw-r--r-- | src/node.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node.js b/src/node.js index 848c39d119..07db3f0963 100644 --- a/src/node.js +++ b/src/node.js @@ -184,6 +184,16 @@ var t = NativeModule.require('timers'); return t.clearInterval.apply(this, arguments); }; + + global.setImmediate = function() { + var t = NativeModule.require('timers'); + return t.setImmediate.apply(this, arguments); + }; + + global.clearImmediate = function() { + var t = NativeModule.require('timers'); + return t.clearImmediate.apply(this, arguments); + }; }; startup.globalConsole = function() { |