Closed thejamespower closed 3 years ago
.size
is the number of queued items waiting to run. .pending
is the number of running items (no longer in the queue). We should indeed make that clearer.concurrency
limits how many things run at the same time. intervalCap
limits how many things run in total during the interval (over time). You don't need concurrency
for your use-case.Thanks @sindresorhus :)
Firstly, thank you for what I believe is the best promise queue library out there!
However, there are three things that need addressing in the documentation:
What is
queue.size
, how does it differ fromqueue.pending
and why is it0
most of the time?How do
concurrency
andintervalCap
affect each other? What happens if one sets both? If I want to throttle requests, by X request per Y milliseconds, am I correct in the options:Why is
carryoverConcurrencyCount
named such? As far as I can tell, it only affects theintervalCap
...