JavaScript today must interact with data-intensive APIs and networks. The solution is a program that can work asynchronously instead of finishing tasks in order. In modern JavaScript, instead of callbacks you’ll use promises to improve your application’s performance and responsiveness. JavaScript features introduced in ES2020, ES2021, and ESNext like Promise.allSettled(), Promise.any(), and top-level await help you develop small, fast, low-profile applications. With the AbortController API, cancel a pending async request before it has completed. Modern Asynchronous JavaScript gives you an arsenal of tools to build programs that always respond to user requests, recover quickly from difficult conditions, and deliver maximum performance.
Not bad, but it could go deeper and bring more complex examples. The exception was chapter 6, which brought a complete and interesting example to show how to cancel async requests.
I enjoyed reading this book, I thought it was a clear, concise overview of the different libraries and language additions to JavaScript for running asynchronous code. While this book is by no means an exhaustive reference, it does serve as a good starting point for anyone with JavaScript experience that wants to learn more about writing asynchronous code.