ts-task-queue

JSON →
library 2.0.0 ·javascript
verified Jun 7, 2026

ts-task-queue is a TypeScript library for creating and managing task queues with a pool of worker threads. Version 2.0.0 provides a simple API based on the `Queue` class, supporting typed task input/output, customizable worker count (default 4), error handling, and multiple queues. It leverages Node.js worker threads for parallel execution and requires the `isMainThread()` guard to separate main and worker code. Unlike generic job queues, it focuses on lightweight in-process threading with TypeScript-first design. The package ships with TypeScript types and is ESM-compatible.