On 11/1/2019 2:42 PM, Jan-Ivar Bruaroey wrote:
My original point was that the semantics of Promise.allSettled, which are "keep waiting for the lot even if some async operations fail", did not deserve its own standard name in the JS language, because of

A) how rarely this is actually what you want,
B) how easy it is to accomplish when it is, using patterns like e.g.
    Promise.all(promises.map(p => p.catch(e => e)) & friends, and
C) (your point?) bugs from people wrongly using instead of Promise.all

Yeah, my own reasoning was more strictly scoped to testing and the
mozilla-central repository because that is my area of expertise, and I
may miss reasons why allSettled could be more useful in JavaScript in
other environments, but your general points look valid to me as well.

Cheers,
Paolo
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to