Introduction
- About This Book
- Acknowledgments
- About the Author
- Disclaimer
1. Promise Basics
- The Promise Lifecycle
- Creating New (Unsettled) Promises
- Creating Settled Promises
- Summary
2. Chaining Promises
- Catching Errors
- Using finally() in Promise Chains
- Returning Values in Promise Chains
- Returning Promises in Promise Chains
- Summary
3. Working with Multiple Promises
- The Promise.all() Method
- The Promise.allSettled() Method
- The Promise.any() Method
- The Promise.race() Method
- Summary
4. Async Functions and Await Expressions
- Defining Async Functions
- What Makes Async Functions Different
- Summary
5. Abortable Functions
- Using an
AbortControllerObject - Custom Signals with
AbortSignal - Creating Abortable Functions
- Summary
6. Unhandled Rejection Tracking
- Detecting Unhandled Rejections
- Web Browser Unhandled Rejection Tracking
- Node.js Unhandled Rejection Tracking
- Summary
Final Thoughts
- Download the Extras
- Help and Support
- Follow the Author