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
Hi. In RxJava 1.x the UnicastSubject is fail-fast and in 2.x it is delay-error. Currently, there is no option for the other mode in either major version.
@akarnokd Ah, I see. Thanks for the clarification. Is that documented somewhere that I'm missing? The UnicastSubject docs for 1.x gave me the impression that all events will get replayed once it's subscribed to, regardless of whether or not there's an error event. I also didn't find it mentioned in the "What's Different in 2.0" wiki.
Also, I noticed you added the "PR welcome" label - Are you looking for PRs that add a way to optionally (and not by default) switch to the currently unsupported mode for each major version? Meaning, add a way to delay-error on 1.x and/or a way to fail-fast on 2.x.
I'm using RxJava 1.2.5. Consider this code:
This outputs:
java.lang.Exception: uh oh
However, the same code using RxJava 2.0.7 version of
UnicastSubject
outputs:1
2
java.lang.Exception: uh oh
Which is the behavior I expected from 1.x.
The text was updated successfully, but these errors were encountered: