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

TakeWhile: don't unsubscribe downstream. #2648

Merged
merged 1 commit into from
Feb 11, 2015

Conversation

akarnokd
Copy link
Member

Fixes #2647 issue with TakeWhile.

@akarnokd akarnokd added the Bug label Feb 11, 2015
* @param op the other subscriber
* @param shareSubscriptions should the subscription list in op shared with this instance?
*/
protected Subscriber(Subscriber<?> op, boolean shareSubscriptions) {
Copy link
Member

Choose a reason for hiding this comment

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

Are there other places this constructor should be used where we're doing it manually today?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, plenty of places.

Copy link
Member

Choose a reason for hiding this comment

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

Thought so ... thanks for the confirmation.

Copy link
Member

Choose a reason for hiding this comment

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

I just merged this ... but I'm always hesitant when changing something as core as Subscriber. Are we ready to support this new method forever. Is it the right signature for all the use cases?

I think it's right, but I've regretted public API decisions before :-)

/cc @zsxwing @abersnaze for more eyes and thought on this.

benjchristensen added a commit that referenced this pull request Feb 11, 2015
TakeWhile: don't unsubscribe downstream.
@benjchristensen benjchristensen merged commit f85b5cd into ReactiveX:1.x Feb 11, 2015
@akarnokd akarnokd deleted the OnCompletedFix branch May 6, 2015 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants