JS promises: all vs allSettled vs race

preview_player
Показать описание
In this video, we are going to go over promises and three different promise methods that you can use when writing JavaScript or Node code.

Introduction -- 00:00

LogRocket is a frontend application monitoring solution that lets you replay problems as if they happened in your own browser. Instead of guessing why errors happen, or asking users for screenshots and log dumps, LogRocket lets you replay the session to quickly understand what went wrong. It works perfectly with any app, regardless of framework, and has plugins to log additional context from Redux, Vuex, and @ngrx/store.

In addition to logging Redux actions and state, LogRocket records console logs, JavaScript errors, stacktraces, network requests/responses with headers + bodies, browser metadata, and custom logs. It also instruments the DOM to record the HTML and CSS on the page, recreating pixel-perfect videos of even the most complex single-page apps.

Рекомендации по теме
Комментарии
Автор

loved your video, it was very educational, thanks a lot

kianaparsi
Автор

in case if you want promise#2 use the result of promise#1 you have to wait until the promise#1 return the result, and in this case how to use async await in both promises.

battmanreturndark