A simple TypeScript task queue with parallel execution control, queue capacity limits, position listeners, and async iteration. Stable version 0.1.2, ships TypeScript types, published on npm and JSR. Key differentiators: very low bundle size (<1KB minzip), supports dynamic parallelism scaling, capacity limits, and both positional listeners and async iterable streams for task progress. Peer dependency on TypeScript ^5.0 indicates type-aware usage.
npm install tasqueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates queue creation with parallelism and capacity, adding async and sync tasks with a position listener, and using the async iterable stream.
Always check the return value of `add` for null before awaiting.
Always set `parallelize` to a positive integer (>=1).
Set `max` to a finite number to use `iterate`.
Consider this when designing behaviour; running tasks must complete or be aborted externally.
Create queue with `max` option: `createQueue({ max: 10 })`Update to version 0.1.x: `npm install tasque@latest`
No dependency data recorded yet.