jQuery $.wait() for *all* deferred's to be rejected?
问题 jQuery has a nice feature of its Deferred API, $.wait() for working with multiple Deferred s / Promise s. It returns when: All of the Deferred s have been resolve() d or One of the Deferred s has been reject() ed Most of the time this is what you want, but sometimes you want to know when all of them have been reject() ed. Is there a simple or elegant way to do something like $.wait() but only when all Deferred s have been rejected? (There may be other use cases but mine is to combine this