-
Notifications
You must be signed in to change notification settings - Fork 15
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
onFailure methods #4
Comments
The idea was to focus on the TFailure type because in the case of a failure, TSuccess won't be present. |
But the same logic can be applied to onSuccess methods, but they preserve So I'm thinking about changing |
Actually, I can't think of any other argument at the moment! Feel free to send me a pull request! :-) |
Hi.
Could you please comment why have you chosen to write
onFailure
methods withResult<?, TFailure>
as return type and notResult<TSuccess, TFailure>
as inonSuccess
?I find it more difficult to compose that way and can't see any advantage of this choice.
The text was updated successfully, but these errors were encountered: