3º. 2º cuatrimestre. Itinerario de Tecnologías de la Información. Grado en Ingeniería Informática. Curso 2019/2020
promise.then
returns a promise, so that we can call the next .then
on it..then(handler)
may create and return a promise. In that case further handlers wait until it settles, and then get its result..then
(or catch/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.[~/.../exception-inside-promise(master)]$ pwd -P
/Users/casiano/campus-virtual/1920/pl1920/apuntes/tema1-introduccion-a-javascript/event-loop/exercises/promises/exception-inside-promise
Exercises: Exceptions and Promises