These are the before & after code examples for Practical Async/Await, a course for writing modern asynchronous JavaScript. 🚀
Feel free to browse through the examples and check out the course for the explanations. It has 2 modules with 16 lessons in total:
Module 1 - Async/Await Fundamentals
- What does the async keyword do?
- How and when to use await
- What is syntax sugar?
- Why async/await is better than Promise.then
- Make callbacks work with async/await
- Evaluate if a library is compatible with async/await
- It's async all the way up
- Async/await inside forEach
Module 2 - Advanced Asynchronous JavaScript
- Run parallel tasks with a concurrency limit
- Run complex asynchronous flows
- Promise.all vs Promise.allSettled
- Implement timeouts with Promise.race
- Cancel asynchronous operations
- Cache asynchronous values
- Use one time events with async/await
- Transform events to async iterators