p-queue icon indicating copy to clipboard operation
p-queue copied to clipboard

size and pending bad experience

Open ognif opened this issue 4 years ago • 1 comments

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.

ognif avatar Mar 03 '20 10:03 ognif

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.

dobesv avatar Mar 26 '21 23:03 dobesv