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

Sending messages to a subscriber from different threads can result in delivery race conditions #138

Closed
jspahrsummers opened this issue Nov 26, 2012 · 1 comment
Assignees
Labels

Comments

@jspahrsummers
Copy link
Member

As pointed out by @Coneko in #136, sending next, error, or completed to a RACSubscriber or RACSubject from multiple threads might result in them being processed simultaneously, and most <RACSignal> and <RACStream> methods aren't built to handle it.

Subjects and subscribers should serialize their messages onto a private queue so that stream methods don't have to worry about synchronization.

@dannygreg
Copy link
Member

To me it was always inferred that the messages would be serialised simply from the API. Definitely 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants