In this video, we will do a small exercise and see how we can handle multiple async calls using Promise.all
and then we will slowly go to Promise.allSettled
to understand how it does the same thing. The main thing we want is whatever promises error out we should get the errors for them but whatever promises succeed we want the results as well which does not happen in case of Promise.all
though we will make a small modification to it to see how it can do so just like Promise.allSettled
.
π±βπ» π±βπ» Course Links:
Complete Code - https://github.com/The-Nerdy-Dev
Visual Studio Code - https://code.visualstudio.com
Git - https://git-scm.com/downloads
Support my channel:
π Join the Discord community π¨βπ©βπ§βπ¦: https://discord.gg/fgbtN2a
π One time donations via PayPal
Thank you! π
Follow me on:
π Twitter: https://twitter.com/The_Nerdy_Dev
π Instagram: https://instagram.com/thenerdydev
π My Blog: https://the-nerdy-dev.com
Top comments (0)