You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
saturated - a callback that is called when the queue length hits the concurrency limit, and further tasks will be queued.
This is both correct & incorrect.
A queue has both a number of running() functions, and a queue of functions to run length(). The event is emitted when .length() === concurrency - whereas it should really be emitted when running() === concurrency.
Example:
varq=async.queue(function(){},2);q.saturated=console.log.bind(console,"full");q.push(1);q.push(2);// would expect "full" hereq.push(3);q.push(4);// but actually get "full" here
The text was updated successfully, but these errors were encountered:
In the https://github.com/caolan/async#queue docs it says:
This is both correct & incorrect.
A queue has both a number of
running()
functions, and a queue of functions to runlength()
. The event is emitted when.length() === concurrency
- whereas it should really be emitted whenrunning() === concurrency
.Example:
The text was updated successfully, but these errors were encountered: