Table of Contents for
JavaScript with Promises

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition JavaScript with Promises by Daniel Parker Published by O'Reilly Media, Inc., 2015
  1. nav
  2. Cover
  3. JavaScript with Promises
  4. JavaScript with Promises
  5. Preface
  6. 1. Asynchronous JavaScript
  7. 2. Introducing Promises
  8. 3. Working with Standard Promises
  9. 4. Using Libraries and Frameworks
  10. 5. Error Handling
  11. 6. Combining ECMAScript 6 Features
  12. Index
  13. About the Author
  14. Colophon
  1. Preface
    1. Intended Audience
    2. A Word on Style
    3. Conventions Used in This Book
    4. Using Code Examples
    5. SafariĀ® Books Online
    6. How to Contact Us
    7. Acknowledgments
  2. 1. Asynchronous JavaScript
    1. Callbacks
    2. Asynchronous JavaScript
    3. Run to Completion and the Event Loop
    4. Summary
  3. 2. Introducing Promises
    1. Basic Usage
    2. Multiple Consumers
    3. Promise States
    4. Chaining Promises
    5. Callback Execution Order
    6. Basic Error Propagation
    7. The Promise API
    8. Summary
  4. 3. Working with Standard Promises
    1. The Async Ripple Effect
    2. Conditional Logic
    3. Parallel Execution
    4. Sequential Execution Using Loops or Recursion
    5. Managing Latency
    6. Functional Composition
    7. Summary
  5. 4. Using Libraries and Frameworks
    1. Promise Interoperability and Thenables
    2. The Bluebird Promise Library
      1. Loading Bluebird
      2. Managing Execution Context
      3. Wrapping Node.js Functions
      4. Working with Collections of Promises
      5. Manipulating Fulfillment Values
    3. Promises in jQuery
    4. Summary
  6. 5. Error Handling
    1. Rejecting Promises
    2. Passing Errors
    3. Unhandled Rejections
    4. Implementing try/catch/finally
    5. Using the Call Stack
    6. Summary
  7. 6. Combining ECMAScript 6 Features with Promises
    1. Destructuring
    2. Arrow Functions
    3. Iterables and Iterators
    4. Generators
      1. Synchronous Style
      2. Generators and Iterators
      3. Sending Values to a Generator
      4. Sending Errors to a Generator
      5. Practical Application
    5. Summary
  8. Index
Back to top