summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-03-22 15:52:34 -0700
committerAlexander Early <alexander.early@gmail.com>2016-03-22 15:52:34 -0700
commit2f5ef064901b620acf6c8633fe2afeacbad87e2b (patch)
treec71970b0c28e0c7794f62f9553c32a8aca250cb2
parent1dec998392e58a74c452d826d83af48db30f3eb0 (diff)
downloadasync-2f5ef064901b620acf6c8633fe2afeacbad87e2b.tar.gz
clarify saturated/unsaturated
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2b5b593..a106612 100644
--- a/README.md
+++ b/README.md
@@ -1250,8 +1250,8 @@ methods:
the `worker` has finished processing the task. Instead of a single task, a `tasks` array
can be submitted. The respective callback is used for every task in the list.
* `unshift(task, [callback])` - add a new task to the front of the `queue`.
-* `saturated` - a callback that is called when the `queue` length hits the `concurrency` limit, and further tasks will be queued.
-* `unsaturated` - a callback that is called when the `queue` length is less than the `concurrency` & `buffer` limits, and further tasks will not be queued.
+* `saturated` - a callback that is called when the number of running workers hits the `concurrency` limit, and further tasks will be queued.
+* `unsaturated` - a callback that is called when the number of running workers is less than the `concurrency` & `buffer` limits, and further tasks will not be queued.
* `buffer` A minimum threshold buffer in order to say that the `queue` is `unsaturated`.
* `empty` - a callback that is called when the last item from the `queue` is given to a `worker`.
* `drain` - a callback that is called when the last item from the `queue` has returned from the `worker`.