Opened 5 years ago

Closed 3 years ago

#17678 closed feature (patchwelcome)

Add a stricter equivalent to dojo/DeferredList to dojo/promise/*

Reported by: cjolif Owned by:
Priority: undecided Milestone: 1.13
Component: Core Version: 1.9.2
Keywords: Cc:
Blocked By: Blocking:

Description

dojo/promise/all is fullfilled as rejected as soon as a single of the promise is rejected.

with dojo/DeferredList it was possible to be fullfilled (possibly as rejected) only when all the Deferred were fullfilled (with at least one rejected).

Change History (2)

comment:1 Changed 5 years ago by nickmaynard

We've found a couple of issues where we've been forced to use DeferredList? to achieve this function. In our case, we needed to wait until two asynchronous processes were finished/fulfilled (regardless of their end state), before we could kick off the next operation.

We couldn't do this with dojo/promise/all (which races to completion as soon as one of the constituent promises is rejected).

So in other words, something like dojo/promise/all that only fulfils once /all/ its constituent promises are fulfilled. (Note: fullfilled -> resolved OR rejected)

Last edited 5 years ago by nickmaynard (previous) (diff)

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.