AsyncWorkerQueue

JSON →
library 0.2.2 ·javascript
verified Jun 7, 2026

A lightweight TypeScript library (v0.2.2, beta) for managing a queue of asynchronous tasks executed with a fixed concurrency using worker threads (or any async function). It exposes a single class AsyncWorkerQueue that supports customizable worker creation, error handling (remove/recreate workers on error), and optional pre-initialization. Unlike generic promise pools, it is tailored for worker-based parallelism with advanced error recovery. Ships TypeScript definitions.