Skip to content

ensure StringObservable.join does not stall #24

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

Merged
merged 1 commit into from
Jul 12, 2015

Conversation

davidmoten
Copy link
Contributor

StringObservable.join passed through requests from child subscriber only and instead needed to request Long.MAX_VALUE of upstream because only emits on completion.

@akarnokd I did slightly more than you suggested so that initial request was Long.MAX_VALUE but also decoupled the parent subscriber from further requests from child subscriber.

PR includes unit test that failed on existing code.

@akarnokd
Copy link
Member

The final value emission doesn't honor backpressure. You can override setProducer instead and request max if n > 0 from the child.

@davidmoten
Copy link
Contributor Author

okey doke

@davidmoten
Copy link
Contributor Author

added backpressure support. That do?

@akarnokd
Copy link
Member

Looks good thanks.

akarnokd added a commit that referenced this pull request Jul 12, 2015
ensure StringObservable.join does not stall
@akarnokd akarnokd merged commit e22a356 into ReactiveX:1.x Jul 12, 2015
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.

2 participants