seq-queue is a FIFO task queue for Node.js that serializes asynchronous operations, ensuring tasks execute in order. Version 0.0.5 is the latest stable release; the package is in maintenance mode with no recent updates. It provides timeout handling per task and events for timeout, close, and drain. Compared to async.queue or bottleneck, seq-queue is minimal with no external dependencies and focuses solely on ordered execution with timeout support.
npm install seq-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with 2-second timeout, pushes two tasks that execute sequentially, and listens for timeout events.
Always call task.done() in the task callback, or set a timeout on the queue or individual tasks.
Do not call task.done() after the task has timed out; handle cleanup in the task function.
Use a library like async.queue or bottleneck for concurrent task processing.
Wrap task content in try-catch and call task.done() in the finally block or use a domain.
Use const queue = require('seq-queue').createQueue(1000);Ensure you are using the latest version and importing correctly. Check that the function signature is (task) => { ... }.Define task as a parameter of the callback function passed to queue.push().
No dependency data recorded yet.