Ejemplo n.º 1
0
 /// <summary>
 /// Chain an enumerable of promises, all of which must resolve.
 /// Converts to a non-value promise.
 /// The resulting promise is resolved when all of the promises have resolved.
 /// It is rejected as soon as any of the promises have been rejected.
 /// </summary>
 public IFpromise <IEnumerable <ConvertedT> > ThenAll <ConvertedT>(Func <IEnumerable <IFpromise <ConvertedT> > > chain)
 {
     return(Then(() => Fpromise <ConvertedT> .All(chain())));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Chain an enumerable of promises, all of which must resolve.
 /// Converts to a non-value promise.
 /// The resulting promise is resolved when all of the promises have resolved.
 /// It is rejected as soon as any of the promises have been rejected.
 /// </summary>
 public IFpromise ThenAll(Func <FpromisedT, IEnumerable <IFpromise> > chain)
 {
     return(Then(value => Fpromise.All(chain(value))));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Chain an enumerable of promises, all of which must resolve.
 /// The resulting promise is resolved when all of the promises have resolved.
 /// It is rejected as soon as any of the promises have been rejected.
 /// </summary>
 public IFpromise ThenAll(Func <IEnumerable <IFpromise> > chain)
 {
     return(Then(() => Fpromise.All(chain())));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Chain an enumerable of promises, all of which must resolve.
 /// Returns a promise for a collection of the resolved results.
 /// The resulting promise is resolved when all of the promises have resolved.
 /// It is rejected as soon as any of the promises have been rejected.
 /// </summary>
 public IFpromise <IEnumerable <ConvertedT> > ThenAll <ConvertedT>(Func <FpromisedT, IEnumerable <IFpromise <ConvertedT> > > chain)
 {
     return(Then(value => Fpromise <ConvertedT> .All(chain(value))));
 }