A pausable and resumable queue for Node.js. Version 0.1.0 (last updated 2011, no further releases). Allows pausing and resuming queue processing, useful for throttling when a resource becomes unavailable. Concurrency defaults to 1. Minimal API: push, pause, resume. Only supports CommonJS. No TypeScript types, no promises. Unmaintained.
npm install pause-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with concurrency 2, pushes two tasks, pauses after 1 second, resumes after 3 seconds.
Always call done() in the worker function to signal completion.
Consider using p-queue or async.queue instead.
Always pass a positive integer for concurrency.
Use require('pause-queue') instead of import.Add done(); at the end of the worker callback.
No dependency data recorded yet.