Projects

node-threadify

Bounded concurrency for Node.js

GitHubnpm

Status
Stable
Year
2024
Stars
6
License
–

Firing hundreds of jobs at once in Node either floods whatever they call or blocks the process. I wanted a small way to cap how many run at a time and hear when each one starts, finishes or fails.

What it does

A package that runs tasks with a fixed number of slots: concurrent mode starts the next task as soon as one finishes, sequential mode runs them in fixed batches. Both emit begin, end and error events.

  1. 01Concurrent and sequential runners
  2. 02Lifecycle events for every task
  3. 03Published on npm

Built with

Package
JavaScript · Node.js · npm

Languages

JavaScript100%