Master de II. ULL. 1er cuatrimestre
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.1
2
[~/.../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