11
Promises and Async Functions
WHAT'S IN THIS CHAPTER?
- Introduction to Asynchronous Programming
- Promises
- Async Functions
WROX.COM DOWNLOADS FOR THIS CHAPTER
Please note that all the code examples for this chapter are available as a part of this chapter's code download on the book's website at www.wrox.com/go/projavascript4e
on the Download Code tab.
In ECMAScript editions beginning with ES6, support and tooling for asynchronous behavior has undergone a renaissance. ECMAScript 6 introduces a formal Promise
reference type, allowing for elegant definition and organization of asynchronous behavior. Later editions also extended the language to support asynchronous functions with the async
and await
keywords.