Run promise-returning & async functions concurrently with optional limited concurrency
by sindresorhusTypeScript
Last 12 weeks · 0 commits
4 of 6 standards met
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)
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
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.
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.