A lightweight Node.js library (v1.0.7, last updated 2019) for iterating over arrays with controlled concurrency and an optional stop mechanism. Unlike generic async queue libraries, it focuses solely on array processing with a fixed concurrency limit. Requires Node >=5.0.0. Infrequently updated; stable for basic use cases.
npm install array-async-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Processes an array of numbers with a concurrency limit of 5, logging each item after a 100ms delay.
Always return a Promise if you need async behavior, or return undefined for sync functions.
Do not mutate the array during processing. Use a separate queue structure if dynamic addition is needed.
Use `const arrayAsyncQueue = require('array-async-queue');` (correct) or `import * as aa from 'array-async-queue'; aa.default(...)` if using TypeScript with esModuleInterop.Ensure first argument is an Array and third argument is a function: `arrayAsyncQueue([1,2,3], 2, (val) => console.log(val))`
No dependency data recorded yet.