Promises
Promises
Chapter Promises, async/await of the book The Modern JavaScript Tutorial.
Callbacks Problems
- javascript.info: Introduction: callbacks
- Promises: Basics: https://javascript.info/promise-basics
- load-script con promesas
- Chuck Norris jokes example (UAI 2015):
- Very Simple Examples of Promises (uai2015)
Promise Chaining
- Promise Chaining
- A call to
promise.then
returns a promise, so that we can call the next.then
on it. - A handler, used in
.then(handler)
may create and return a promise. In that case further handlers wait until it settles, and then get its result. - Promises Chaining fetch example
- If a
.then
(orcatch/finally
, doesn’t matter) handler returns a promise, the rest of the chain waits until it settles. When it does, its result (or error) is passed further. - Repo ULL-MII-SYTWS-1920/ull-mii-sytws-1920.github.io: exercises/promises/promise-chaining
- A call to
Error Handling
[~/.../exception-inside-promise(master)]$ pwd -P
/Users/casiano/campus-virtual/1920/pl1920/apuntes/assets/temas/introduccion-a-javascript/event-loop/exercises/promises/exception-inside-promise
Exercises: Exceptions and Promises
Promise API
Promisification
Microtasks
Async/await
Ejercicios
Prácticas
Referencias
- Book Understanding ECMAScript 6: Promises and Asynchronous Programming
- Book Exploring ES6: 25. Promises for asynchronous programming
- Curso JavaScript Promises en Udacity
- Book The Modern Javascript Tutorial. Chapter Promises, async/await
- Promises Workshop for JavaScript! Learn to wield promises like a master to write clean asynchronous code GitHub Repo. A Workshopper module that teaches you to use promises in javascript
- Node.js 8: util.promisify() by Dr. Axel Rauschmayer
- Asynchronous Iterators in JavaScript by Tiago Lopes
- EdX: Asynchronous Programming with Javascript EdX Course