sindresorhus / p-queue

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

[Feature request] Get number of tasks before one #187

Open KaKi87 opened 1 year ago

KaKi87 commented 1 year ago

Hello,

It would be nice to be able to get the number of tasks to complete before one becomes active.

When concurrency = 1 and priority is not used then then the value equals size, otherwise it's more complicated.

Thanks