Promises: Error Handling, Aborts, and Helper Methods - Part 2

  Рет қаралды 1,688

Syntax

Syntax

Күн бұрын

We're diving into part 2 of our 3-part series on Promises, focusing on error handling, aborts, and essential helper methods. We'll explore how to manage errors effectively and improve performance with abort signals. Let's get into it!
Show Notes
00:00 Welcome to Syntax!
00:41 Brought to you by Sentry.io.
02:00 Cancelling promises.
05:16 Why would you reach for an abort signal?
06:26 Promise helpers.
07:04 Promise.all() vs Promise.allSettled().
09:12 promiseInstance.finally()
09:26 Promise.any() and Promise.race()
12:08 Error handling strategies.
17:30 Promise.race() example.
18:54 Static Promise.reject() and .resolve() methods.
All links available at syntax.fm/771
------------------------------------------------------------------------------
Hit us up on Socials!
Scott: / stolinski
Wes: / wesbos
Randy: / @randyrektor
Syntax: / syntaxfm
www.syntax.fm
Brought to you by Sentry.io
#webdevelopment #webdeveloper #javascript

Пікірлер: 13
@JohnFarrellDev
@JohnFarrellDev 13 күн бұрын
Great as always. I know you want to keep the show effective for audio only but some code examples on the screen would be really helpful.
@syntaxfm
@syntaxfm 13 күн бұрын
We have a few recorded all ready with code on screen. Def something we'll be doing much more in the future
@wesleycoder
@wesleycoder 13 күн бұрын
Promise.race is useful for hitting both an external API and a cache, you trigger both and wait for the fastest successful response.
@Drnken
@Drnken 13 күн бұрын
makes so much sense lol thank you for that
@rafaelrocha3991
@rafaelrocha3991 12 күн бұрын
Another example usage of Promise.race would be for a large scale system with some sort of redundant services you want data and you know you can get it from multiple points so you do multiple fetches resolving to the same mapper from different sources.
@Stoney_Eagle
@Stoney_Eagle 11 күн бұрын
Promise {} 😊
@abdellahcodes
@abdellahcodes 13 күн бұрын
Sentry swag drop when?!!
@syntaxfm
@syntaxfm 13 күн бұрын
🐫
@ValorousReaper
@ValorousReaper 12 күн бұрын
Promise.race in a sorta Family Feud game with webhooks. First player to hit their button gets to answer.
JS Promises Fundamentals  - Part 1
22:01
Syntax
Рет қаралды 2,7 М.
Components We Need on Every Project
55:55
Syntax
Рет қаралды 2,4 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 4,1 МЛН
Ну Лилит))) прода в онк: завидные котики
00:51
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,5 МЛН
JavaScript Error Handling: 5 Things You Aren’t Thinking About!
14:42
The easiest way to chat with Knowledge Graph using LLMs (python tutorial)
18:35
7 HTML Features You Probably Don't Know
3:05
Awesome
Рет қаралды 49 М.
Add an overlay to a background-image with one line of CSS
6:20
Kevin Powell
Рет қаралды 40 М.
Asynchronous JavaScript Tutorial #11 - Throwing Errors
5:07
Net Ninja
Рет қаралды 50 М.
Static vs Non-Static Variables and Methods In Java - Full Simple Tutorial
11:29
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,8 МЛН
как спасти усилитель?
0:35
KS Customs
Рет қаралды 515 М.
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,6 МЛН
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 966 М.
Обзор игрового компьютера Макса 2в1
23:34
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43