JavaScript with promises

Asynchronous JavaScript is everywhere, whether you’re using Ajax, AngularJS, Node.js, or WebRTC. This practical guide shows intermediate to advanced JavaScript developers how Promises can help you manage asynchronous code effectively—including the inevitable flood of callbacks as your codebase grows...

Descripción completa

Detalles Bibliográficos
Otros Autores: Parker, Daniel, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Beijing : O'Reilly 2015.
Edición:First edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629265106719
Tabla de Contenidos:
  • ""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""