In-memory function queue with error handling, retry capabilities, and throttling of simultaneous executions. Version 0.0.0 targets Node >=0.4.x and is an early, likely unstable release. It provides a FunctionQueue class inheriting from EventEmitter, with options for concurrency control (maxPending), retry attempts (maxAttempts), and attempt timeout. Compared to modern queue libraries like p-queue or bull, fqueue is minimal, has no dependencies, and offers manual done/error signaling rather than promise-based flow. Last updated in 2012, it should be considered exploratory code.
npm install fqueueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a FunctionQueue with concurrency and retry settings, starts a task that errors twice then succeeds, and listens for events.
Always call queue.done() after queue.error() completes.
Explicitly set maxAttempts: 0 if retries are not desired.
Wrap async functions with manual done/error invocation.
Pass an explicit scope option when creating the queue or calling start/enqueue.
Create a .d.ts file or use any type.
Use var FunctionQueue = require('fqueue').FunctionQueue; then new FunctionQueue(options);Ensure .done() is called exactly once per started task.
No dependency data recorded yet.