Skip to content
This repository
Browse code

call next function in waterfall asynchronously

  • Loading branch information...
commit 6470518623188c42eafdbc9d1a1b1fa674a9cb6c 1 parent 99ffdb9
Caolan McMahon authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/async.js
2  lib/async.js
@@ -58,7 +58,7 @@ exports.waterfall = function(arr){
58 58 if(i < arr.length-1){
59 59 args = args.concat(arguments.callee)
60 60 }
61   - arr[i].apply(null, args);
  61 + process.nextTick(function(){arr[i].apply(null, args);});
62 62 }
63 63 })();
64 64 };

0 comments on commit 6470518

Please sign in to comment.
Something went wrong with that request. Please try again.