
JavaScript with Promises
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Preface
- Intended Audience
- A Word on Style
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. Asynchronous JavaScript
- Callbacks
- Asynchronous JavaScript
- Run to Completion and the Event Loop
- Summary
- Chapter 2. Introducing Promises
- Basic Usage
- Multiple Consumers
- Promise States
- Chaining Promises
- Callback Execution Order
- Basic Error Propagation
- The Promise API
- Summary
- Chapter 3. Working with Standard Promises
- The Async Ripple Effect
- Conditional Logic
- Parallel Execution
- Sequential Execution Using Loops or Recursion
- Managing Latency
- Functional Composition
- Summary
- Chapter 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
- Chapter 5. Error Handling
- Rejecting Promises
- Passing Errors
- Unhandled Rejections
- Implementing try/catch/finally
- Using the Call Stack
- Summary
- Chapter 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
- About the Author
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.