FunctionQueue is a utility for executing functions in FIFO order, designed for Node.js (>=0.6). Version 0.0.12 is the latest release, which appears to be a stable but minimal package with no active development. It provides a simple queue mechanism where functions are added via `push()` and must call a provided callback to proceed to the next function. It lacks modern features like concurrency control, event support, or promise integration, making it a basic choice for sequential task execution compared to alternatives like `async.queue` or `bull`.
npm install function-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, adds two functions that execute in order. Each function must call callback to continue.
Always invoke callback() when the function completes its asynchronous work.
Always call the required module as a function: const queue = require('function-queue')();If you need to abort running tasks, implement your own cancellation logic.
Consider migrating to async.queue, p-limit, or bull for modern queue management.
Use const queue = require('function-queue')();Ensure callback() is called exactly once and not inside a loop or multiple branches.
Verify that callback is called after asynchronous operations complete, not synchronously in a loop.