Mastering async code with Typescript and Javascript
Async code can be some of the hardest code to write in Typescript and Javascript, and we write it all the time. So let’s build up some patterns for writing async/await code well, doing multiple stacked async calls, testing our async code, using promises for caching, and even supporting old school callbacks.
Code:
PokeAPI: #docker-and-compose--
Promise pool: @supercharge/promise-pool
MSDN Promises documentation:
00:00 Introduction
00:32 Project setup
02:31 Promises with then
04:55 Error handling with catch
06:30 Promises with async/await
08:55 Error handling with try/catch
12:15 Making your own promi ...
#JackHerrington #async_await_javascript #async_await_typescript #async_code #async_typescript #error_handling_patterns_in_async_code #jack_herrington #javascript_async #javascript_async_await #javascript_promises
20210901
VcOMq3LQtBU
41 view
1103
350
6 months ago 00:37:19 1
LIMINAL [GMOD CINEMATIC]
6 months ago 02:11:31 1
Asynchronous JavaScript Course – Async/Await , Promises, Callbacks, Fetch API
8 months ago 00:03:11 1
Dasychira - Eternal Family (Official Video)
8 months ago 00:16:28 5
КАК СОЗДАТЬ СЕРВЕР С НУЛЯ НА ATERNOS ДО ГОТОВОГО ПРОЕКТА?! ATERNOS MINECRAFT
11 months ago 01:27:09 1
Магистерский курс C++ (МФТИ, 2022-2023). Лекция 22. Паралеллизм.
11 months ago 05:51:20 1
Ускоренный Курс по Асинхронному JavaScript 👨💻 за 5 Часов 👍 | JavaScript Уроки Visual Studio