-
Notifications
You must be signed in to change notification settings - Fork 20.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add catch to promise objects #2102
Comments
I can see us creating |
of course, this would need to be done with |
Giant +1 on this. Since these Promises aren't based on a prototype, it's much easier for this to be supported internally rather than having to do something like wrap the constructor and decorate the returned promise. |
I updated the title for accuracy. Suggested implementation: "catch": function( fn ) {
return promise.then( null, fn );
} |
Sounds like a blocker to me |
This relates to #1722 but a far simpler request... given that the
.then
method matches the Promise spec (with the extra progress parameter), it would be nice that there be a compatible.catch
method... (per @dmethvin) this could call and return.then(null,fn)
as a passthrough.The text was updated successfully, but these errors were encountered: