Promise.allSettled vs Promise.all in Javascript 💡

preview_player
Показать описание


📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

Promise all runs it concurrently, not in parallel

yotsubasam
Автор

I have multiple apis that i would like to call in parallel, but the issue is that each api can have a different response time, so what would you suggest i use in that case? Both promise.all and all settled would wait for every single api to finish their response.
Thanks

deepjyotideb