If you're going to use a lib like pLimit to limit the concurrency of a map, just use pMap which accepts an argument to limit the concurrency and makes it more readable and straightforward
Helpful for beginners but not entirely clear what this is rethinking! These are widely known promise fundamentals since all settled became widely available in 2019ish and omits for ... await loops despite that being THE async loop primative (and what I thought this would be about reading the title).
I mean... that's literally what these functions are for? Yes, `Promise.all()` fails on any one failure, that's the whole point. This feels a lot like an LLM just rehashed MDN.
If you're going to use a lib like pLimit to limit the concurrency of a map, just use pMap which accepts an argument to limit the concurrency and makes it more readable and straightforward
https://github.com/sindresorhus/p-map?tab=readme-ov-file#usa...
Helpful for beginners but not entirely clear what this is rethinking! These are widely known promise fundamentals since all settled became widely available in 2019ish and omits for ... await loops despite that being THE async loop primative (and what I thought this would be about reading the title).
I mean... that's literally what these functions are for? Yes, `Promise.all()` fails on any one failure, that's the whole point. This feels a lot like an LLM just rehashed MDN.
TFA is definitely slop.
Looking at the submissions from the same site: https://news.ycombinator.com/from?site=allthingssmitty.com
exactly one submission every two weeks, either a very disciplined writer or some sort of automation.