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

Scan backpressure and first emission fix #3171

Merged
merged 1 commit into from Aug 28, 2015

Conversation

akarnokd
Copy link
Member

Fixes #3168

If there is no initial value, there is no need to manipulate the request amounts.

If there is an initial value, we must do a full emitter-loop with value queueing because now the downstream request can race with the first onNext or the setting of the upstream producer. The downside is the increased overhead which should be reduced when the spsc unbounded queues get merged.

@stevegury
Copy link
Member

👍

1 similar comment
@stealthcode
Copy link

👍

stealthcode pushed a commit that referenced this pull request Aug 28, 2015
Scan backpressure and first emission fix
@stealthcode stealthcode merged commit e217a2c into ReactiveX:1.x Aug 28, 2015
@akarnokd akarnokd deleted the OperatorScanFirstEmissionFix branch September 9, 2015 15:32
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.

None yet

4 participants