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

Document threading #3

Open
lkesteloot opened this issue Oct 9, 2015 · 0 comments
Open

Document threading #3

lkesteloot opened this issue Oct 9, 2015 · 0 comments

Comments

@lkesteloot
Copy link

Thank you for writing this. It's really opening my mind as to what's possible with Rx.

Since threading is a particularly difficult and under-documented part of Rx, I think it'd be useful if you documented the threading issues here. Specifically, you have three threads: The main thread, the thread that "Received:" is printed on, and the thread that the memory is cleared on. Since all three access common data without interlocks, you risk errors unless you're careful.

I know that's not the point of the example, but it's almost like the example is misleading if it doesn't point this out. Let me know if you want a pull request.

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

No branches or pull requests

1 participant