-
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
.share() inconsistent in behavior #1242
Comments
Hi @switchawk , This is a dupe of #1111 and #1155. This is next thing to solve on my list. The problem isn't in us changing it in this repo. Problem is figuring out how will we keep consistent this behavior with other implementations. I'll need to open issues in RxJs and RxJava repos probably. But yes, we'll improve this. |
If you want a temporary workaround for this, just add let s = numbers1.scan(0) { prev, input in
print("Scan")
return prev+input
}.subscribeOn(CurrentThreadScheduler.instance).share() |
Any news @kzaher? |
Hi @RafaelPlantard , this is the next thing on my list. I'm on a business trip in China until the end of this week. I will only do CRs until I return from the trip. It's little hard to do a lot of things in parallel :) |
Thanks @kzaher |
Hi guys, As far as I can tell, #1275 should fix this. Let me know if it doesn't. |
Hi guys, I want to discuss this scenario, regarding
share()
operator.For this code:
This input ("A"):
Will result with:
However this input ("B"):
Will result with this:
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
3.2.0
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: