Are there standards or emerging standards for extended promise functions such as .all()
, .finally()
, .catch()
, .spread()
, .settle()
, etc...
I know about the Promises A+ spec, but that only appears to deal with .then()
and I can't find standards for all the other useful functions. I'm familiar with jQuery, Q and Bluebird and there are meaningful differences among all which seems like it should be a temporary condition as everything should converge to a standard over time since there's really no reason to have different names for similar pieces of functionality. I know jQuery isn't even fully Promises A+ compatible, but apparently it is a stated goal to at least move to that, but what about all the other useful functions?
My motivation for wanting to understand what the current and future standards development looks like is to know which current functions offered in the various libraries are more likely to be consistent with future standards and which are not so I can write code that will need less maintenance in this area in the future. I've done a bunch of searching and it seems to be a hard thing to find (for me anyway). I can see Promise.all()
in an ES6 draft spec, but don't see any of the others.
Are there proposed standards for advanced promise functions such as .all()
, .finally()
, .catch()
, .spread()
and .settle()
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…