12 points | by AllThingsSmitty 4 hours ago ago

6 comments

  • Kayou 3 hours ago

    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...

  • pkilgore 3 hours ago

    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).

  • Etheryte 3 hours ago

    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.

  • 3 hours ago
    [deleted]