- Course
Modern Asynchronous JavaScript
When it comes to writing asynchronous code in JavaScript, callbacks can be a hassle. In this course, you'll see alternatives to callbacks, including ES6 promises, and how to combine generators with promises to write async code in a synchronous style.
- Course
Modern Asynchronous JavaScript
When it comes to writing asynchronous code in JavaScript, callbacks can be a hassle. In this course, you'll see alternatives to callbacks, including ES6 promises, and how to combine generators with promises to write async code in a synchronous style.
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
What you'll learn
In this course, Modern Asynchronous JavaScript, you will learn how to write asynchronous code that's a joy to maintain, not a burden. You will learn how to reason about promises, an alternative to callbacks, by creating a promise framework. Seeing promises from the perspective of a producer helps reason better about being the consumer of promise based APIs. Then, you will learn about ES6 generators and how to combine them with promises to write code that looks synchronous but that's actually asynchronous. This style cuts out the inherent verbosity of callbacks and even promises alone. When you're finished with this course, you'll know how to write asynchronous code in a fashion that's not a hassle to maintain.
Modern Asynchronous JavaScript
-
Callback Nesting Nightmare | 6m 15s
-
What You Will Get out of This Course | 2m 10s
-
What You Need to Know | 6m 39s
-
How to Use This Course | 46s
-
Callbacks | 4m 39s
-
Double-edged Sword: Explicit Async Seams | 1m 15s
-
Con: Seams Rip Across Program | 4m 7s
-
Con: Another Error Mechanism | 3m 6s
-
Con: Hard to Reuse Error-handling Logic | 1m 25s
-
Con: Difficult to Understand | 2m 40s
-
Challenge: Synchronize Multiple Callbacks | 4m 49s
-
Solution | 6m 7s
-
Parallelism: Wouldn't This Be Nice? | 2m 41s
-
One-shot Events | 3m
-
Takeaways | 4m 26s