Simple FIFO queue for executing async functions sequentially. Version 0.1.0 is the latest stable release, last updated in 2013. It provides a concise API for queuing asynchronous jobs that run one after another, each with success/failure callbacks. Unlike modern alternatives like p-queue or bottleneck, this package is extremely minimal, lacks promise support, and has no concurrency control. It is primarily intended for Node.js environments with callbacks.
npm install async-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with two callback-based jobs and runs them sequentially.
Use p-queue or bottleneck for modern async queue needs.
Ensure each job callback receives (err, job) and calls job.success() or job.fail() appropriately.
Always check the 'err' argument in job callbacks and call job.fail(err) when errors occur.
Use const AsyncQueue = require('async-queue');Ensure job callbacks follow the (err, job) pattern and never call job.success before job.fail.
Verify that the second parameter in the job function is the job object, e.g., function(err, job){ ... }.No dependency data recorded yet.