JavaScript: Run Multiple Promises at Once with Promise.allSettled — One Failure Won't Ruin the Batch
DEV Community
JavaScript: Run Multiple Promises at Once with Promise.allSettled — One Failure Won't Ruin the Batch
Promise.allSettled() waits for every promise to finish and returns each result, so one failing API doesn't throw away the data from the rest.
0 comments
No comments yet.