CreatePromiseAll (open)

The CreatePromiseAll function returns a new promise which is fulfilled with an array of fulfillment values for the passed promises, or rejects with the reason of the first passed promise that rejects.

Syntax

LOADLIB "wh::promise.whlib";

OBJECT FUNCTION CreatePromiseAll(OBJECT ARRAY promises)

Parameters

OBJECT ARRAY promises

List of promises

Return value

OBJECT

New promise.