throttle-queue 0.1.0 is a promise-based priority queue for Node.js and browser environments that offers task deduplication, concurrency control, serial execution, and job aging to prevent starvation. It supports async/await patterns and allows setting a custom executor function. Version 0.1.0 is the initial release; the package is no longer actively maintained. Key differentiators: built-in deduplication via job IDs, aging mechanism, and priority levels (low, medium, high).
npm install throttle-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a throttle-queue with concurrency 2, sets an async executor, and processes a deduplicated task with priority.
Use `const Queue = require('throttle-queue');`.Always provide a unique id per distinct task.
Use `Queue.priority.HIGH` (value 1), `Queue.priority.MEDIUM` (value 3), or `Queue.priority.LOW` (value 5).
Call `queue.setExecutor(executor)` before `await queue.process(...)`.
Consider using alternatives like `p-queue` or `bottleneck` for active support.
Use `const Queue = require('throttle-queue');`Create an instance first: `const queue = new Queue();` then call `queue.setExecutor(...)`
Set executor via `queue.setExecutor(executor)` before processing tasks.
No dependency data recorded yet.