Closed benjamingr closed 9 years ago
This is the intention, and already implemented in this project,
Awesome, I didn't see any specification document only a promise.js
that had a finally.
I thought about suggesting a .finally
to JS promises but then remembered that it makes more sense to bind it to cancellation so I went to this repo and opened an issue.
Thanks
The aim is to get a prototype working, then ensure the prototype is written spec-like, then spec.
Awesome - it'd be great to be kept in the loop (and also @pektaantonov) so future plans for bluebird can be aligned with spec cancellation as from what I see they are very close anyway.
On Sun, Jun 14, 2015 at 3:17 PM, Jake Archibald notifications@github.com wrote:
The aim is to get a prototype working, then ensure the prototype is written spec-like, then spec.
— Reply to this email directly or view it on GitHub https://github.com/domenic/cancelable-promise/issues/3#issuecomment-111821189 .
Yeah, we're taking a lot of cues from Bluebird, there are only a couple of small differences https://gist.github.com/jakearchibald/9a24f3c06f06b9c06a1e#comment-1469960
It would be interesting to consider the addition of
.finally
to the promises specification when cancellable promises land - and it would be interested to consider runningfinally
blocks on cancelled promises. This is for example what bluebird does.