TypeScript tutorialLesson 35Free preview
TS Async Programming
This lesson is part of TypeScript · All levels
Summary
Asynchronous programming in TypeScript uses Promise and async await with clear type. The async function always returns Promise even if you write the return regularly. Error handling uses try catch, and it helps to wait for many tasks in parallel.
Key points
- The async function always returns the Promise
- Await only within the async function
- Try catch catch catch error results
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.