Skip to content

No more exposing setImmediate as local variable - #2866

Merged
zcbenz merged 4 commits into
masterfrom
no-expose-setimmediate
Sep 22, 2015
Merged

zcbenz merged 4 commits into
masterfrom
no-expose-setimmediate

Conversation

@zcbenz

@zcbenz zcbenz commented Sep 22, 2015

Copy link
Copy Markdown
Contributor

It makes more troubles than benefits, and somehow it is slowing message loop down, resulting in remote calls being extremely slow sometimes.

It makes more troubles than benefits, and somehow it is slowing message
loop down.
Since the callback is called asynchronously there is no way to prevent
the callback from being called twice.
zcbenz added a commit that referenced this pull request Sep 22, 2015
No more exposing setImmediate as local variable
@zcbenz
zcbenz merged commit 889d7c1 into master Sep 22, 2015
@zcbenz
zcbenz deleted the no-expose-setimmediate branch September 22, 2015 07:10
@fritx

fritx commented Sep 27, 2015

Copy link
Copy Markdown
Contributor

image

I'm using electron 0.33.3 darwin x64, wondering why it throws such an Error, seems like one from node.js or electron's node fork itself?

image

@fritx

fritx commented Sep 27, 2015

Copy link
Copy Markdown
Contributor

Maybe it's https://github.com/atom/node/blob/atom/src%2Fnode.js#L588
should be NativeModule.require('timers').setImmediate(callback) instead ;)

@zcbenz

zcbenz commented Sep 27, 2015

Copy link
Copy Markdown
Contributor Author

@fritx Yeah it should be, do you mind creating a new issue for it?

@fritx

fritx commented Sep 27, 2015

Copy link
Copy Markdown
Contributor

yeah, done 👍 #2916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants