You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In node 0.10.x Cross library async interleaving can result in (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
Although, bluebird typically avoids this with its own micro task queue:
In some scenarios, it is possible to interleave two such micro tasks queues in a way that still results in the limit being hit.
In addition to interleaving between different libraries due to the node_module's dupe friendly module resolution strategy, it is common to have multiple copies of the same library present and interacting with one another.
The text was updated successfully, but these errors were encountered:
stefanpenner
changed the title
Potential issue on node 0.10.x
cross library nextTick interleaving can cause deprecation in node 0.10.x
Dec 7, 2014
stefanpenner
changed the title
cross library nextTick interleaving can cause deprecation in node 0.10.x
Cross library interleaving can cause node 10's nextTick limit to be hit.
Dec 7, 2014
In node
0.10.x
Cross library async interleaving can result in(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
Although, bluebird typically avoids this with its own micro task queue:
https://github.com/petkaantonov/bluebird/blob/master/src/schedule.js#L5-L9
https://github.com/petkaantonov/bluebird/blob/master/src/async.js#L55-L67
In some scenarios, it is possible to interleave two such micro tasks queues in a way that still results in the limit being hit.
In addition to interleaving between different libraries due to the
node_module
's dupe friendly module resolution strategy, it is common to have multiple copies of the same library present and interacting with one another.A quick example:
An example failing test thanks to @taras https://github.com/tildeio/rsvp.js/pull/337/files#diff-e7e77ddad631a023d39a62f3ba8b7f17R2524
this limit has been removed in node
0.11.0
nodejs/node@0761c90
nodejs/node@0761c90
Unfortunately our solution was to fallback to
setImmediate
in node0.10.x
.I wasn't able to think of a better solution, but that doesn't mean a better one doesn't exist so if someone has one feel free to share :)
related:
tildeio/rsvp.js#337
cujojs/when#410
kriskowal/asap#51
The text was updated successfully, but these errors were encountered: