question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would it be feasible to support finally? Ie.

axios.get(...).then(...).catch(...).finally(...);

It would get triggered in both then/catch cases and seems to be common in Promise implementations (handy for cleanup).

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

71reactions
toymachiner62commented, Sep 7, 2018

Google brought me here, but es6 does support finally https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally.

Should this issue be reopened to add support for .finally?

11reactions
jny986commented, Nov 27, 2019

FYI for anyone that comes here in the future .finally() does now work with axios.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Promise.prototype.finally | Can I use... Support ... - CanIUse
finally. - OTHER. When the promise is settled, whether fulfilled or rejected, the specified callback function is executed.
Read more >
Promise.prototype.finally() - JavaScript - MDN Web Docs
The finally() method of a Promise object schedules a function to be called when the promise is settled (either fulfilled or rejected).
Read more >
Does C++ support 'finally' blocks? (And what's this 'RAII' I keep ...
No, C++ does not support 'finally' blocks. The reason is that C++ instead supports RAII: "Resource Acquisition Is Initialization" -- a poor name...
Read more >
Apple Music Support Finally Added to Tesla Vehicles
Car manufacturer Tesla today rolled out a holiday software update that introduces support for Apple Music. According to reports on Twitter, ...
Read more >
Parent Involvement Has Always Mattered. Will The COVID-19 ...
Will the COVID-19 pandemic finally force school systems to treat parents as the ... or asked to support their children's academic success.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found