Closed jeremyrambo closed 7 years ago
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. })
It's not part of the specification, so no. You can use a library for that, like https://github.com/blakeembrey/promise-finally.
Have you considered adding a finally notation to the popsicle promise?
E.g.