From 2f5ef064901b620acf6c8633fe2afeacbad87e2b Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Tue, 22 Mar 2016 15:52:34 -0700 Subject: clarify saturated/unsaturated --- README.md | 4 ++-- 1 file 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`. -- cgit v1.2.1