Skip to content

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