Queue promises into a pool with configurable concurrency, timeout, and debounce. Latest v4.0.1 (2024) is ESM-only, requires Node >= 20. Provides Pool (limiting concurrency), PoolManager (ordered task execution with dependencies), and SeqWorker (sequential queue). Differentiators: sequential worker with debounce, dependency-aware PoolManager, and collective rejection behavior on first error.
npm install promise-pool-extNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Pool with concurrency 3, runs three async tasks, and logs the results in order.
Convert your project to ESM (set type: module in package.json) or use import() syntax.
Upgrade Node.js to v20 or later.
Replace requires: '*' with requires: ['check1', 'check2', ...] listing all required tasks.
Implement per-task error handling inside the task functions, or set a timeout to bound execution time.
Use a separate timeout mechanism if you need to abort the whole batch on timeout.
Use import { Pool } from 'promise-pool-ext' or switch to ESM.Use import { Pool } from 'promise-pool-ext' (curly braces).Correct usage: const pool = Pool({ concurrency: 3 }); pool(tasks);No dependency data recorded yet.