Permalink
Browse files

add running() which allows a task-callback to check if the queue has …

…drained.
  • Loading branch information...
1 parent 4471254 commit 03edcad28e13c2809487a1afac5fb141a97f65f3 @MaZderMind MaZderMind committed Apr 11, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/async.js
View
@@ -568,6 +568,9 @@
},
length: function () {
return tasks.length;
+ },
+ running: function () {
+ return workers;
}
};
return q;

0 comments on commit 03edcad

Please sign in to comment.