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

3.x: Fix blockingIterable not unblocking when force-disposed #6626

Merged
merged 4 commits 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.

A separate PR will be posted for 2.x.

Related #6625

@akarnokd akarnokd added this to the 3.0 milestone Aug 21, 2019
akarnokd and others added 2 commits August 21, 2019 15:18
…/BlockingFlowableIterable.java

Co-Authored-By: Niklas Baudy <niklas.baudy@vanniktech.de>
…le/BlockingObservableIterable.java

Co-Authored-By: Niklas Baudy <niklas.baudy@vanniktech.de>
@akarnokd akarnokd merged commit c98416b into ReactiveX:3.x Aug 21, 2019
@akarnokd akarnokd deleted the BlockingIterableDisposeFix3x branch August 21, 2019 15:53
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