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.
LOADLIB "wh::promise.whlib"; OBJECT FUNCTION CreatePromiseAllSettled(OBJECT ARRAY promises)
OBJECT ARRAY promises
List of promises
Rejection value (only if status is 'rejected')
Promise status: 'fulfilled' or 'rejected'
Fulfullment value (only if status is 'fulfilled')