P-Limit is a JavaScript utility for controlling how many promise-returning or asynchronous functions execute at the same time. Developers create a limiter with a chosen concurrency level and run tasks through it instead of launching every operation immediately. The library works in both Node.js and modern browsers. It exposes counts for currently active and waiting tasks so applications can inspect workload state. Pending work can be cleared, and an optional setting can reject discarded promises with an AbortError. The concurrency limit can also be changed after creation. Additional helpers support concurrency-limited mapping and creating individual functions that automatically manage their own simultaneous executions.

Features

  • Configurable asynchronous concurrency limits
  • Node.js and browser compatibility
  • Active and pending task counters
  • Runtime concurrency adjustment
  • Pending queue clearing with optional rejection
  • Limited mapping and self-limiting function helpers

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow P-Limit

P-Limit Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of P-Limit!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Command Line Tools

Registered

2026-09-08