Added promisesAllSettled function that takes an array of promises as an input and returns a promise that resolves after all of the given promises have either fulfilled or rejected with an array of objects that each describes the outcome of each promise.
How did you implement it:
Function loops through the given promises and wait until all promises have been resolved or rejected. Once all promises are settled it returns the promise with an array of objects [status, value] for all the promises.
What did you implement:
Closes #ROKU-142
Added promisesAllSettled function that takes an array of promises as an input and returns a promise that resolves after all of the given promises have either fulfilled or rejected with an array of objects that each describes the outcome of each promise.
How did you implement it:
Function loops through the given promises and wait until all promises have been resolved or rejected. Once all promises are settled it returns the promise with an array of objects [status, value] for all the promises.
How can we verify it:
/src/components/promise/_tests/promisesAllSettled.test.brs
Todos:
Is this ready for review?: YES Is it a breaking change?: NO