-
Notifications
You must be signed in to change notification settings - Fork 751
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
SkipUntil with empty sequence never completes #326
Comments
Perhaps you shouldn't observe Instead, wouldn't it be reasonable for the output sequence to simply never generate any notifications? However, if the "until" sequence is empty, then |
To clarify the behavior, in RxJava 1.x if the other sequence completes with |
Returns:
If For callers who want I wasn't aware that RxJava opens the gate when For callers who want sequence closure to open the gate, pass an |
@akarnokd In reviewing #551 I found that it retains the behaviour, which I find puzzling as well. I wrote a failing unit test for that. The desired behaviour should be discussed before I can merge #551. |
I kept the current expected behavior by the unit tests. Changing it would count as a drastic behavior change and should have happened with 4.0.0 final. |
Still, what could have been the rationale ? |
When you do a library the first time without external independent feedback, you'll glance over practicalities such as not leaving the stream hanging even though terminal events have been fired. I don't see any value turning a flow with In RxJava, we open the gate upon It's hard to debug because the system has a state and no events fly around; no breakpoints can get hit and thus it is hard to inspect the memory. |
I think this is by design in Rx.NET. You can defensively add |
Expected: OnCompleted when the source
sequence
completedActual: Never completes
Appears to be related to ReactiveX/RxJava#4511
The text was updated successfully, but these errors were encountered: