-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Optionally use setImmediate instead of nextTick in middleware #1081
Conversation
Maybe this would be better on |
|
Sounds good then 👍 |
Hmm.. the docs recommend using The reason the warning is there is because the behavior changed from "after I/O" to "before I/O" in 0.10. I think we are okay with blocking I/O here, so that warning is noise. I wonder if it got removed in later versions... |
Not just that. I'm going to release 2.17 without this. We haven't been running it and I want to do our upgrade internally before the rest of the world tests it extensively. |
We've been using this for about a week and no catastrophes have popped up. Any objections to merging it? |
We've been using this for awhile without problem, so it's good to merge & release. |
Optionally use setImmediate instead of nextTick in middleware
When upgrading from node 0.8 to 0.10, we were failing with errors like this:
This uses
setImmediate
instead ofnextTick
if available, allowing our hubot to boot.cc @technicalpickles