What about error handling in this case, while using multiple awaits we could have error handling on response of each result , what would happen if promise got rejected, response is not same as what we expect ?
so as mentioned Promise.all will asynchronously rejects with the value of the promise that rejected, whether or not the other promises have resolved
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What about error handling in this case, while using multiple awaits we could have error handling on response of each result , what would happen if promise got rejected, response is not same as what we expect ?
so as mentioned Promise.all will asynchronously rejects with the value of the promise that rejected, whether or not the other promises have resolved