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
In the first case the upstream is disposed after 5 seconds, not after 1 second (same as window(count))
In the second case the upstream is disposed after 1 second (different from window(count))
Questions
Is it by design or a bug? I would expect the upstream to be disposed and all active windows completed once the downstream is disposed. Or at least behaviour to be consistent across all window(...) operators.
The text was updated successfully, but these errors were encountered:
Dispose after 5 seconds is expected, because you indicate no more windows should be created but you still have an active window consuming items that will run to its completion, then detect there no further windows can be created and thus the upstream should be cancelled.
I have to investigate Sample 1 Case 2 (sized window without subscribing to the windows themselves).
RxJava version: 3.0.5
OS: Android
Hello. Today I discovered an odd behaviour of some of the
Observable.window(...)
operators. Here are some samples:Sample 1
The output of the code is:
If you comment the line
it.subscribe({}, {}, { Log.v("MyTest", "Window completed") })
then the output is:Concerns:
Sample 2
The
window(timeSpan, TimeUnit)
operator behaves differently.So the output is:
If you comment the line
it.subscribe({}, {}, { Log.v("MyTest", "Window completed") })
ten the output is:Concerns:
window(count)
)window(count)
)Questions
Is it by design or a bug? I would expect the upstream to be disposed and all active windows completed once the downstream is disposed. Or at least behaviour to be consistent across all
window(...)
operators.The text was updated successfully, but these errors were encountered: