Closed bergus closed 8 years ago
You can just write that function yourself. It's already bad practice to use two-arg then, so this is an intentional omission.
Well, I cannot write it myself without Cancel.isCancel
(#32), or did I miss something?
And no, two-argument then
is not a bad practice (dunno who invented that myth), but a very useful tool for control flow.
How can I do what your previous "third state" proposal allowed as
.then(onFulfilled, onError, onCancelled)
? I believe this functionality is quite essential, and you should provide a utility method for it:I'm looking for a better name though (bergus/promise-cancellation#4).