[Pkg-javascript-commits] [node-async] 06/480: call next function in waterfall asynchronously

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit 6470518623188c42eafdbc9d1a1b1fa674a9cb6c
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date:   Sun May 16 13:41:25 2010 +0100

    call next function in waterfall asynchronously
---
 lib/async.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/async.js b/lib/async.js
index ad4dd77..732c386 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -58,7 +58,7 @@ exports.waterfall = function(arr){
             if(i < arr.length-1){
                 args = args.concat(arguments.callee)
             }
-            arr[i].apply(null, args);
+            process.nextTick(function(){arr[i].apply(null, args);});
         }
     })();
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list