Skip to content

Amb with backpressure support #1516

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

Closed
wants to merge 1 commit into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Jul 25, 2014

For #1475

@cloudbees-pull-request-builder

RxJava-pull-requests #1437 SUCCESS
This pull request looks good

@@ -274,6 +275,10 @@ private AmbSubscriber(Subscriber<? super T> subscriber, int index, AtomicInteger
this.index = index;
}

public void requestMore(long n) {
Copy link
Member

Choose a reason for hiding this comment

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

By default this Subscriber will request Long.MAX_VALUE up, since it doesn't do anything onStart. When I put printlns in the test, it shows how it gets a Long.MAX_VALUE request first:

1-requested: 9223372036854775807
2-requested: 9223372036854775807
requestMore: 3
1-requested: 3
requestMore: 3
2-requested: 3

@benjchristensen
Copy link
Member

Please take a look at #1533 which builds on top of your change.

@zsxwing
Copy link
Member Author

zsxwing commented Jul 30, 2014

Close as done in #1533

@zsxwing zsxwing closed this Jul 30, 2014
@zsxwing zsxwing deleted the backpressure-amb branch August 2, 2014 14:11
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.

3 participants