Adding 'finally' to popsicle promise
Closed this issue · 1 comments
jeremyrambo commented
Have you considered adding a finally notation to the popsicle promise?
E.g.
popsicle.get('/users')
.then(function (res) {
// Success!
})
.catch(function (err) {
// Something broke.
})
.finally(function (err) {
// Something to happen regardless of success or failure.
})
blakeembrey commented
It's not part of the specification, so no. You can use a library for that, like https://github.com/blakeembrey/promise-finally.