YQueue is a concurrent priority task queue for Node.js (v1.0.1, ~monthly releases). It provides concurrency control, prioritized tasks, and error handling for batch operations. Unlike p-limit or bottleneck, YQueue offers both a simple queue and a batch mode with backpressure via `maxQueueLength`. Supports async hooks and best-effort error stack traces. Ships TypeScript types. Lightweight with zero runtime dependencies.
npm install yqueueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of YQueue with priority and YBatch with backpressure.
Always add .catch() to the promise returned by .run(), or use .add() with error handling.
If you need to limit total in-flight + pending, implement your own logic or use YBatch with maxQueueLength.
No immediate action needed. Use { priority: number } as shown in docs.Wait for .failFast() or .allSettled() to know when tasks finish.
Use `import { YQueue } from 'yqueue'` instead of `import YQueue from 'yqueue'`.Add .catch() to the promise returned by .run() or handle errors via YBatch.failFast().
Set concurrency to an integer >= 1.
No dependency data recorded yet.