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

Add 'request(Long.MAX_VALUE)' in 'onStart' to fix the backpressure issue of debounce #2851

Merged
merged 2 commits into from
Apr 2, 2015

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Apr 1, 2015

Fixed #2850.

The issue is because OperatorDebounceWithTime will swallow values but not request more items. Just add request(Long.MAX_VALUE) since it doesn't support backpressure.

@akarnokd
Copy link
Member

akarnokd commented Apr 1, 2015

I'm not sure: why not request(1) for each dropped value similar to filter()?

@zsxwing
Copy link
Member Author

zsxwing commented Apr 1, 2015

I just followed OperatorDebounceWithSelector.

@akarnokd akarnokd added the Bug label Apr 2, 2015
@zsxwing
Copy link
Member Author

zsxwing commented Apr 2, 2015

@akarnokd other comments?

@akarnokd
Copy link
Member

akarnokd commented Apr 2, 2015

None.

zsxwing added a commit that referenced this pull request Apr 2, 2015
Add 'request(Long.MAX_VALUE)' in 'onStart' to fix the backpressure issue of debounce
@zsxwing zsxwing merged commit a6a6a33 into ReactiveX:1.x Apr 2, 2015
@zsxwing zsxwing deleted the fix-debounce branch April 2, 2015 16:24
@benjchristensen benjchristensen mentioned this pull request Apr 9, 2015
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