Can be used to simplify Promise error handling and if errors are acceptable.
Promise.all will just fail if any of the provided promises fails and not return or cancel pending promises or partial results
Using Promise.allSettled (or this method) instead will return a result for each promise and not automatically fail if any of the promises fails.
Instead it will return a promise containing information if any of the promises failed
and the actual results will be available as results array
Can be used to simplify Promise error handling and if errors are acceptable. Promise.all will just fail if any of the provided promises fails and not return or cancel pending promises or partial results Using Promise.allSettled (or this method) instead will return a result for each promise and not automatically fail if any of the promises fails. Instead it will return a promise containing information if any of the promises failed and the actual results will be available as
results
array