sindresorhus / p-queue

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

Know what is the priority of the current running function #115

Open dguayrobotiq opened 4 years ago

dguayrobotiq commented 4 years ago

I see in the doc that .sizeBy can return the size of the queue by priority.

How can I get the priority of the function that is currently running?

The purpose of this is handling different UI loading from different running function's priority.