GitShow/sindresorhus/p-all
sindresorhus

p-all

Run promise-returning & async functions concurrently with optional limited concurrency

by sindresorhus
Star on GitHubForknpm

TypeScript

345 stars16 forks5 contributorsQuiet · 11mo agoSince 2016v5.0.1MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus19 contributions
BendingBender
BendingBender2 contributions
Richienb
Richienb1 contribution
wvanderdeijl
wvanderdeijl1 contribution
privatenumber
privatenumber1 contribution

Languages

View on GitHub →
TypeScript74.2%
JavaScript25.8%

Commit activity

Last 12 weeks · 0 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 →
Rohan5commit
docs: improve README wordingMergedPR

Summary improve one README sentence by tightening the wording around concurrency limits 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 · 5mo ago
gndelia
pAll incorrectly infers type to unknown[] when pAll has nested promises (unless the function is async)ClosedIssue

Unsure if this is a typescript problem, or something related to the definition of p-all's types It seems that if the task passed to uses internally, the api fails to infer the proper type of the result, unless the task is defined as async. I am using in a complex scenario, but a simplified code in which I was able to reproduce the bug is: If I hover on visual studio code, is inferred as The proper inference should be Workaround If the task is defined as , the type is inferred correctly The type is now correctly inferred If I use an intermediate variable, it also works (without async) if I hover on VS code: type is correctly inferred Test that should pass

gndelia · 11mo ago
kitsunde
Option to set failOnError false while still throwing first error encounteredClosedIssue

Hello, I'm using this library to quickly replace calls that are currently to avoid an issue with orphaned promises after one fails. However this throws an on which changes the semantics. It would be nice if it could keep the exception semantics, but still wait. I understand I can just replace things with or some such, although that also changes the semantics since the order of failure is lost.

kitsunde · 3y ago
Structured data for AI agents

Repository: sindresorhus/p-all. Description: Run promise-returning & async functions concurrently with optional limited concurrency Stars: 345, Forks: 16. Primary language: TypeScript. Languages: TypeScript (74.2%), JavaScript (25.8%). License: MIT. Latest release: v5.0.1 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, Richienb, wvanderdeijl, privatenumber.

·@ofershap

Replace github.com with gitshow.dev