Skip to content

Hopefully fixed missing notifications if part of the subscription is del... #660

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

Closed
wants to merge 2 commits into from

Conversation

akarnokd
Copy link
Member

...ayed.

Fix suggestion to issue #658.

Basically it is a "spin-lock" between onNext and the subscription. It has the additional effect of locking out concurrent subscriptions, but these would most likely clash on the state-swap anyway.

@cloudbees-pull-request-builder

RxJava-pull-requests #594 SUCCESS
This pull request looks good

@akarnokd
Copy link
Member Author

Added test case to illustrate the underlying issue. If I comment out the new mutating part, it will fail typically with values (3, 7, 8, 9) != (3, 4, 5, 6, 7, 8, 9)

@cloudbees-pull-request-builder

RxJava-pull-requests #595 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member

I'll have to spend more time on this one later to think through.

@akarnokd
Copy link
Member Author

Okay.

@akarnokd akarnokd closed this Dec 27, 2013
@akarnokd akarnokd deleted the BehaviorSubjectRaceFix branch January 13, 2014 09:57
jihoonson pushed a commit to jihoonson/RxJava that referenced this pull request Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants