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

2.x: Fix blockingIterable hang when force-disposed #6627

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

akarnokd
Copy link
Member

When the iterator was cast to Disposable and disposed, the subsequent hasNext would block indefinitely. That interface is not intended to be part of the public API and Iterator in general does not support any form of official cancellation (unlike Stream). This PR makes sure that if that dispose is called, it unblocks the iterator.

Resolves #6625

@akarnokd akarnokd merged commit a9df239 into ReactiveX:2.x Aug 21, 2019
@akarnokd akarnokd deleted the BlockingIterableHangFix2x branch August 21, 2019 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants