Site is currently on development mode

Using Promise.prototype.finally in Node.js

Last updated 2 years ago by Valeri Karpov


Promise.prototype.finally() recently reached stage 4 of the TC39 proposal process. This means the Promise.prototype.finally() proposal was accepted and is now part of the latest draft of the ECMAScript spec, and it is only a matter of time before it lands in Node.js. This article will show you how to use Promise.prototype.finally() and how to write your own simplified polyfill.

Read full Article