Almost everything new in JavaScript is built on Promises and async functions, and even the existing features of the language are starting to migrate to the new structure.
But they are not just keywords that magically make something async work with the rest of the program. Async changes how the function work and that can lead to errors without proper understanding.
From this book, you'll build an understanding on how Promises and async/await work and you'll be familiar with the common problems and their solutions.
Book + video course
Introduction | |
What you'll learn | 04:30 |
Asynchronous programming in JavaScript | 07:55 |
Async/await basics | |
Async functions | 05:11 |
Await | 08:09 |
Special case: returning Promises | 04:47 |
Promises | |
The Promise constructor | 07:35 |
Promises states | 05:50 |
Error handling | |
Error handling in async functions | 03:45 |
Error handling in the Promise constructor | 04:37 |
Async performance | |
Parallel processing | 07:18 |
Promisification | |
Callback styles | 05:48 |
Promisification | 07:19 |
Miscellaneous | |
Useful functions | 06:57 |
Common errors | 13:25 |
Example codes | 10:04 |
Outro | |
Congratulations | 00:42 |
Hey, I'm Tamás! I co-author the advancedweb.hu blog where I've published more than 300 articles to date on various technology topics.
I'm a software developer focusing mostly on cloud computing and web technologies. I'm especially interested in how to handle edge cases to end up with dependable software.
I find asynchronous programming fascinating as when everything works perfectly it feels like magic as various parts of a program are doing their things without interfering with each other. On the other hand, concurrency brings a lot of edge cases that can lead to bugs that are very hard to debug and fix. I enjoy thinking about these "what can go wrong" scenarios and observe a program that works well in many different conditions.
My books and courses: