Simple async function queue with configurable concurrency. Current stable version is 1.0.0. Maintained by yld.io. No significant release cadence. Key differentiators: minimal API, CommonJS only, callback-based, event-driven (entry, exit, drain events). Suitable for limiting concurrency of async operations.
npm install async-function-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 5 tasks, and logs drain event when all complete.
Call Queue(concurrency) without new.
Ensure each function calls the callback when work is complete.
Migrate to modern queue libraries such as 'p-queue' or 'async.queue'.
Import with require('async-function-queue') and handle typings separately.Use Queue(concurrency) without 'new'.
Ensure you call Queue(concurrency) to get a queue object, then call .push on it.
Make sure each pushed function accepts a callback argument and calls it when done.
No dependency data recorded yet.