You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably not an issue. Its more of a query i have. I very well could be misusing, misunderstanding or not aware of something.
The use case is if the api call fails i want it to successfully return the cache.
Much like andThen allows the transforming of one thing to another contained withing the Result type. What i feel i am looking for is a way to "andThen the error". So i can transform the E into a success using Ok(SomeType)
I can't find the function though i could just be using it wrong/this is not the correct practice.
For now i'm letting my Error contain any type so it can optionally return the result i want.
Thanks in advance, really loving using kotlin-result so far.
The text was updated successfully, but these errors were encountered:
This is probably not an issue. Its more of a query i have. I very well could be misusing, misunderstanding or not aware of something.
The use case is if the api call fails i want it to successfully return the cache.
Much like andThen allows the transforming of one thing to another contained withing the Result type. What i feel i am looking for is a way to "andThen the error". So i can transform the E into a success using Ok(SomeType)
I can't find the function though i could just be using it wrong/this is not the correct practice.
For now i'm letting my Error contain any type so it can optionally return the result i want.
Thanks in advance, really loving using kotlin-result so far.
The text was updated successfully, but these errors were encountered: