Overload | Description |
---|---|
Any(INPromise[]) | The Any method takes an array of promises, and returns a single promise that fulfills with the result of the first promise that is fulfilled. If no promises fulfill (i.e. all of the promises are rejected), then the returned promise is rejected with an AggregateException, that groups together the individual exceptions. Essentially, this method is the opposite of the All method. |
Any(INIterable<INPromise>) | The Any method takes an array of promises, and returns a single promise that fulfills with the result of the first promise that is fulfilled. If no promises fulfill (i.e. all of the promises are rejected), then the returned promise is rejected with an AggregateException, that groups together the individual exceptions. Essentially, this method is the opposite of the All method. |
Any<TResult>(INPromise[]) | The Any method takes an array of promises, and returns a single promise that fulfills with the result of the first promise that is fulfilled. If no promises fulfill (i.e. all of the promises are rejected), then the returned promise is rejected with an AggregateException, that groups together the individual exceptions. Essentially, this method is the opposite of the All method. |
Any<TResult>(INIterable<INPromise>) | The Any method takes an array of promises, and returns a single promise that fulfills with the result of the first promise that is fulfilled. If no promises fulfill (i.e. all of the promises are rejected), then the returned promise is rejected with an AggregateException, that groups together the individual exceptions. Essentially, this method is the opposite of the All method. |