NevronOpenVision
Nevron.Nov Namespace / NAggregatePromise Class / Any Method
Any Method
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.
Overload List
OverloadDescription
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.  
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.  
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.  
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.  
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also