-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Replay subscribes multiple times to upstream sequence if that sequence completes #1155
Comments
Hi @hannesstruss , I think this is related with #1111. We'll try to fix these issues. I think that in the meantime, this should provide you a workaround.
|
Same to me @hannesstruss |
Hi guys, I've done some further investigations of this. It looks like RxJS and RxJava actually behave like we do now, after 3.2.0. RxJava
RxJS
I think there was actually a bug before 3.2.0 for not clearing the connection once sequence terminates. I've managed to solve other sharing problems, but the more I look at this, it seems to me that current behavior is actually correct. In light of all of this, I would like to close this issue since changing this behavior would make us inconsistent with other Rx implementation and make our life harder since some of the new work actually relies on this behavior. |
Alright, thanks for looking into it! |
Short description of the issue:
Snippet 1:
Snippet 2:
Expected outcome:
Snippet 1 and Snippet 2 to print "Doing work!" exactly once.
What actually happens:
Snippet 1 prints "Doing work!" twice. Snippet 2 prints once, as expected. This seems to be a regression between
3.1.0
and3.2.0
. The issue persists in3.3.1
.RxSwift/RxCocoa/RxBlocking/RxTest version/commit
3.2.0-3.3.1
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
Installation method:
I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)
The text was updated successfully, but these errors were encountered: