Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Preface
Intended Audience
A Word on Style
Conventions Used in This Book
Using Code Examples
SafariĀ® Books Online
How to Contact Us
Acknowledgments
1. Asynchronous JavaScript
Callbacks
Asynchronous JavaScript
Run to Completion and the Event Loop
Summary
2. Introducing Promises
Basic Usage
Multiple Consumers
Promise States
Chaining Promises
Callback Execution Order
Basic Error Propagation
The Promise API
Summary
3. Working with Standard Promises
The Async Ripple Effect
Conditional Logic
Parallel Execution
Sequential Execution Using Loops or Recursion
Managing Latency
Functional Composition
Summary
4. Using Libraries and Frameworks
Promise Interoperability and Thenables
The Bluebird Promise Library
Loading Bluebird
Managing Execution Context
Wrapping Node.js Functions
Working with Collections of Promises
Manipulating Fulfillment Values
Promises in jQuery
Summary
5. Error Handling
Rejecting Promises
Passing Errors
Unhandled Rejections
Implementing try/catch/finally
Using the Call Stack
Summary
6. Combining ECMAScript 6 Features with Promises
Destructuring
Arrow Functions
Iterables and Iterators
Generators
Synchronous Style
Generators and Iterators
Sending Values to a Generator
Sending Errors to a Generator
Practical Application
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →