[Pkg-javascript-commits] [node-async] 76/480: add running() which allows a task-callback to check if the queue has drained.

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:14 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 03edcad28e13c2809487a1afac5fb141a97f65f3
Author: Peter <github at mazdermind.de>
Date:   Mon Apr 11 21:07:08 2011 +0200

    add running() which allows a task-callback to check if the queue has drained.
---
 lib/async.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/async.js b/lib/async.js
index 250d8e9..7e4b058 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -568,6 +568,9 @@
             },
             length: function () {
                 return tasks.length;
+            },
+            running: function () {
+                return workers;
             }
         };
         return q;

-- 
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