Skip to content
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

Fix "Received value before receiving subscription" crash. #6

Merged

Conversation

epatey
Copy link
Contributor

@epatey epatey commented Jun 26, 2019

Thanks for the code. Appreciate you sharing your work.

Fix crash caused by Observables that send a value synchronously while being subscribed to. Combine requires receiving the subscription event before receiving and value events.

@epatey epatey force-pushed the fix_value_before_subscription branch from 22edcec to 9a5b8a1 Compare June 26, 2019 19:14
@epatey
Copy link
Contributor Author

epatey commented Jun 26, 2019

Switched implementation to use SingleAssignmentDisposable based on feedback.

… being subscribed to. Combine requires receiving the subscription event before receiving and value events.
@epatey epatey force-pushed the fix_value_before_subscription branch from 9a5b8a1 to 295148a Compare June 26, 2019 20:07
Copy link
Member

@freak4pc freak4pc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much ! I’ll release 1.1.1 tomorrow

@freak4pc freak4pc merged commit 82c35bc into CombineCommunity:master Jun 26, 2019
@epatey epatey deleted the fix_value_before_subscription branch June 27, 2019 12:02
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.

None yet

2 participants