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

1.x: change publish(Func1) to use a dedicated subject-like dispatcher #3681

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Feb 8, 2016

Solves the problems #3673 and #3674 by introducing a new subject-like dispatcher class OnSubscribePublishMulticast that does support backpressure, pauses when there are no subscribers and signals the terminal event for late subscribers; all ideal for the multicasting publish(Func1) overload.

@akarnokd
Copy link
Member Author

akarnokd commented Feb 9, 2016

Updated with more unit tests and behavior clarification/validation (publish(Func1) had almost no tests).

@akarnokd akarnokd added this to the 1.x Backlog & Discussions milestone Feb 9, 2016

ts.requestMore(RxRingBuffer.SIZE);

ts.assertValueCount(128);
Copy link
Member

Choose a reason for hiding this comment

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

Should you use RxRingBuffer.SIZE here?

@stevegury
Copy link
Member

Other than this minor comment, 👍

akarnokd added a commit that referenced this pull request Feb 11, 2016
1.x: change publish(Func1) to use a dedicated subject-like dispatcher
@akarnokd akarnokd merged commit 4e2e1d0 into ReactiveX:1.x Feb 11, 2016
@akarnokd akarnokd deleted the PublishMulticast1x branch February 11, 2016 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants