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
I have played around with Infallible and noticed that neither of Relays (PublishRelay, BehaviorRelay nor ReplayRelay) could not be converted into a Infallible without providing a fallback. Relays never end or emit error so I guess it is fine to be converted into Infallible with asInfallible().
What do you think? Am I missing something?
The text was updated successfully, but these errors were encountered:
I think this is an interesting idea but I'll need some more time to think about it to make sure there aren't any obvious issues around this that I'm missing. Thanks for the idea and PR!
I second this! I am currently converting Observable objects to Infallible in our application, but in some instances I can't easily because Relays don't convert to Infallible.
In some cases I've used asInfallible(onErrorRecover:) to log the impossible error and then return Infallible.empty() to continue.
Hello,
I have played around with
Infallible
and noticed that neither of Relays (PublishRelay
,BehaviorRelay
norReplayRelay
) could not be converted into aInfallible
without providing a fallback. Relays never end or emit error so I guess it is fine to be converted intoInfallible
withasInfallible()
.What do you think? Am I missing something?
The text was updated successfully, but these errors were encountered: