I am trying to figure out how to know the full outcome of handling multiple promises.
As per the documentation of when.all():
If any of the promises is rejected, the returned promise will be rejected with the rejection reason of the first promise that was rejected.
One thing that also happens is that the returned promise, gets rejected the moment the first promise gets rejected. Which means that the when.all() method will not wait for all promises to finish if one of them rejects.
That can be convenient for some cases...
I want to know when all promises have finished, and what was their outcome individually regardless if they rejected or resolved...
What pattern would you suggest for this?