-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process.nextTick() never calls its callback #14425
Comments
What happens when you use |
It seems to work with |
@bnoordhuis would you mind elaborating about what's going on internally? I just got a similar situation reported at c4milo/node-inotify#67 and would like to understand better. |
@c4milo When you use |
I see, that makes sense @addaleax! Thanks! So, since I'm using NAN, should I use Nan::Call instead? nodejs/nan#284 (comment) |
@c4milo I am pretty sure those problems have long been resolved – if you call into Node asynchronously, |
@addaleax thanks again, I've been out of the loop regarding node/v8 changes for a while. This is very helpful <3 |
When a function is invoked in the
uv_async_send
handler context and callsprocess.nextTick()
, the callback provided toprocess.nextTick()
is never called.setImmediate()
works fine.native.cc
:test.js
:node test.js
output:The text was updated successfully, but these errors were encountered: