]> khamidou — GitHub mirrors - electron.git/commitdiff
No more need to override setImmediate
authorCheng Zhao <zcbenz@gmail.com>
Mon, 14 Sep 2015 07:47:39 +0000 (15:47 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 14 Sep 2015 07:47:39 +0000 (15:47 +0800)
It is now done in Node.js.

atom/common/lib/init.coffee

index 88b32d8c0254fb1b9b0e0ad48515d001d2651e56..48f06b93f65916241fc90a54eb1a1fd9d5eae443 100644 (file)
@@ -37,8 +37,6 @@ wrapWithActivateUvLoop = (func) ->
     process.activateUvLoop()
     func.apply this, arguments
 process.nextTick = wrapWithActivateUvLoop process.nextTick
-global.setImmediate = wrapWithActivateUvLoop timers.setImmediate
-global.clearImmediate = timers.clearImmediate
 
 # setTimeout needs to update the polling timeout of the event loop, when called
 # under Chromium's event loop the node's event loop won't get a chance to update