-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Description
Promise.prototype.finally = function (callback) {
let P = this.constructor;
return this.then(
value => P.resolve(callback()).then(() => value),
reason => P.resolve(callback()).then(() => { throw reason })
);
};
susiwen8, Ray-56, poyiding, 1520306916, dongtaotao and 83 morewodeMAX, xiely, bra1nworld, simpleAndyoung and FinnWu1154056274 and yaoocheng1520306916, suyuelingshuang, np2472059195, LazyJM, huixian-wang and 3 moregeorge-wq, simpleAndyoung, a474516631 and AndyBoat