Skip to content

Commit

Permalink
Fix use process.nextTick
Browse files Browse the repository at this point in the history
  • Loading branch information
hokaccha committed Mar 12, 2012
1 parent 4dd0464 commit 50b2394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/chain-tiny.js
Expand Up @@ -211,7 +211,7 @@ Chain.prototype.parallel = function(obj) {
var keys = Object.keys(obj);
keys.forEach(function(key) {
var fn = obj[key];
setTimeout(function() {
process.nextTick(function() {
fn.call(null, function _next(err, result) {
if (err) {
next(err);
Expand All @@ -224,7 +224,7 @@ Chain.prototype.parallel = function(obj) {
}
}
});
}, 0);
});
});
});
};
Expand Down

0 comments on commit 50b2394

Please sign in to comment.