Support finally?
See original GitHub issueWould 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:
- Created 9 years ago
- Comments:18 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
?FYI for anyone that comes here in the future
.finally()
does now work with axios.