sindresorhus / p-queue

Promise queue with concurrency control
MIT License
3.41k stars 182 forks source link

Vague Documentation #121

Closed thejamespower closed 3 years ago

thejamespower commented 3 years ago

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:

sindresorhus commented 3 years ago
  1. .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.
  2. They are just different constraints. 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.
  3. It's a bad name, I agree. I'm open to ideas for a better name.
thejamespower commented 3 years ago

Thanks @sindresorhus :)