diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-03-22 15:52:34 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-03-22 15:52:34 -0700 |
commit | 2f5ef064901b620acf6c8633fe2afeacbad87e2b (patch) | |
tree | c71970b0c28e0c7794f62f9553c32a8aca250cb2 /README.md | |
parent | 1dec998392e58a74c452d826d83af48db30f3eb0 (diff) | |
download | async-2f5ef064901b620acf6c8633fe2afeacbad87e2b.tar.gz |
clarify saturated/unsaturated
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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`. |