CreatePromiseAllSettled (open)
The CreatePromiseAllSettled returns a promise that is fulfilled with an array of promise state snapshots, but only after all the original promises have settled, i.e. become either fulfilled or rejected.
Syntax
LOADLIB "wh::promise.whlib";
OBJECT FUNCTION CreatePromiseAllSettled(OBJECT ARRAY promises)Parameters
OBJECT ARRAY promisesList of promises
Return value
OBJECTNew promise
OBJECT reasonRejection value (only if status is 'rejected')
statusPromise status: 'fulfilled' or 'rejected'
valueFulfullment value (only if status is 'fulfilled')