4 ms·
promise chains do that pretty nicely Promise.start() .then(doOnething) .then(doSecondThing) .then(doThirdThing) .then(doLastThing) .cat
by 8note 8y ago
promise chains do that pretty nicely
Promise.start()
.then(doOnething)
.then(doSecondThing)
.then(doThirdThing)
.then(doLastThing)
.catch(handlesomeerrors)
- coldtea 8y agoThat's because promises kind of Monad-ic.