GitShow/sindresorhus/p-limit
sindresorhus

p-limit

Run multiple promise-returning & async functions with limited concurrency

by sindresorhus
Star on GitHubForknpm

JavaScript

2.9k stars141 forks19 contributorsActive · 1mo agoSince 2016v7.3.1MIT

Meet the team

See all 19 on GitHub →
sindresorhus
sindresorhus59 contributions
LinusU
LinusU2 contributions
jdmarshall
jdmarshall2 contributions
sugoroku-y
sugoroku-y1 contribution
tuhm1
tuhm11 contribution
sethp
sethp1 contribution
liuhanqu
liuhanqu1 contribution
zkochan
zkochan1 contribution

Languages

View on GitHub →
JavaScript95.6%
TypeScript4.4%

Commit activity

Last 12 weeks · 2 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
rajanpanth
Fix detached limit.map callsMergedPR

Summary make use the limiter it belongs to instead of its call-time receiver cover detached calls sharing the limiter's configured concurrency with direct tasks Problem is exposed as a callable function property, but its implementation invokes the limiter through dynamic . A valid detached call such as therefore rejects with . Fix Use the closed-over function when scheduling mapped items. This preserves the existing concurrency, ordering, iterable, and index behavior without requiring a bound receiver. The regression test combines a direct limiter call with a detached call and verifies their shared maximum concurrency remains at the configured limit. Testing AVA suite on Node.js 20, 22, and 24 The aggregate command was also attempted. On this Windows checkout, XO reports its existing TypeScript project-service lookup error for and ; the same error occurs on the untouched base. The changed JavaScript files pass XO.

rajanpanth · 1mo ago
Rohan5commit
docs: use tear down in READMEMergedPR

Summary use the two-word verb "tear down" in the README Related issue N/A (trivial docs wording fix) Guideline alignment CONTRIBUTING: none found in the repo root or .github on main PR template: none found in the repo root or .github on main Validation Not run (docs-only change)

Rohan5commit · 3mo ago
sergerommss95-cpu
feat: add pause and resume capabilities to concurrency limitMergedPR

This PR adds , and properties to the concurrency limit function. This allows developers to temporarily halt the execution of queued tasks (while currently executing tasks run to completion) and resume them later. It is fully covered by new unit tests and typed.

sergerommss95-cpu · 3mo ago
Structured data for AI agents

Repository: sindresorhus/p-limit. Description: Run multiple promise-returning & async functions with limited concurrency Stars: 2919, Forks: 141. Primary language: JavaScript. Languages: JavaScript (95.6%), TypeScript (4.4%). License: MIT. Latest release: v7.3.1 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, LinusU, jdmarshall, sugoroku-y, tuhm1, sethp, liuhanqu, zkochan, rajanpanth, schnittstabil and others.

·@ofershap

Replace github.com with gitshow.dev