p-queue
p-queue copied to clipboard
size and pending bad experience
If I add a task to the queue, and this is running, I expect
size = 1 pending = 0
if I add 2 tasks and one is running I expect
size = 2 pending = 1
But what ever I do, if 1 task is in job, I get size and pending = 0 If I have 2 tasks and 1 is running I get size and pending = 1
There have to be a problem in this information.
I guess the naming isn't great but if the author changes this now it'll break all existing code that uses the existing meanings. If you feel the documentation could be improved to avoid confusion, submit a PR with clarifications to the documentation.