active event
const queue = new PQueue({ concurrency: 5 });
queue.addAll(myTaskQueue);
queue.on('active', () => {
console.log(`${queue.size} requests remain to be scraped, pending workers: ${queue.pending}`);
});
console log
5 requests remain to be scraped, pending workers: 4
4 requests remain to be scraped, pending workers: 4
3 requests remain to be scraped, pending workers: 4
2 requests remain to be scraped, pending workers: 4
1 requests remain to be scraped, pending workers: 4
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too