-
Notifications
You must be signed in to change notification settings - Fork 195
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
[Feature Request] getOrError and freshOrError #553
Labels
enhancement
New feature or request
Comments
Would this function any different than runCatching{ store.get()} |
Being the one that suggested it: absolutely not! However, I have noticed amongst my teams that it is relatively easy to forget about the fact that stores can throw (and seem to be expected to in Fetchers should anything go wrong). Having it part of the default API helps remember that, and is close to the kotlin .get/.getOrNull() equivalents |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.reddit.com/r/androiddev/comments/13mb2sz/comment/jkwwjxs/?utm_source=share&utm_medium=web2x&context=3
The text was updated successfully, but these errors were encountered: