P-Queue
Promise queue with concurrency control
P-Queue is a JavaScript promise queue for controlling how asynchronous and synchronous tasks are scheduled and executed. It is especially useful when applications must limit concurrent operations or respect external API rate limits. Developers can specify how many tasks may run simultaneously and how many may start within a defined time interval. Queued jobs can receive priorities, identifiers, timeouts, and AbortSignal-based cancellation support. The library exposes events and state...