Closed jescalan closed 10 years ago
Great, thanks for the example! One minor correction, it needs a return
:
somePromise.finally(function(){
console.log('running finally');
// added return
return otherPromise().tap(console.log); // this does not execute
}).tap(function(){ console.log('done with promise chain'); });
Working on a fix now!
:tada:
Ah I'm sorry, too much coffeescript with implicit returns
No worries, I figured it was coffeescript ;)
If you return a promise from
promise.finally
, it is not given a chance to resolve, and finally returns as if synchronous. Example: