-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make it possible to catch specific error types and chain error handling #65
Comments
Why call it |
I actually prefer Regular |
Correct, it doesn't return a value, but I can return a value from a method from inside the |
Of course, but the method proposed here requires some kind of return, since it's chained on to the map or flatMap above it. Personally I think it's clearer when it follows the same pattern |
I would prefer to keep things as similar to RxSwift as we can so the transition is easy for iOS devs using RxSwift to come over to Vapor 3: |
Example:
Of particular interest is how to handle
catchMap()
blocks returning a different type than the lastmap()
block.The text was updated successfully, but these errors were encountered: