sindresorhus / p-queue

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

Add `add` and `next` events #111

Closed kheyse-oqton closed 4 years ago

kheyse-oqton commented 4 years ago

Related to https://github.com/sindresorhus/p-queue/issues/107

I needed some way to listen to changes in the amount of work in the PQueue. One event is emitted when work is added, the other when work is completed.

sindresorhus commented 4 years ago

I'm unable to merge this as you unchecked the checkbox that allows me to edit the PR.

kheyse-oqton commented 4 years ago

Because this is an organization-owned fork, it seems i am unable to change this setting. https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork only mentions the checkbox for user-owned forks.

kheyse-oqton commented 4 years ago

Much appreciated!