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

1.x: fix Completable.concat & merge hanging in async situations #4849

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

akarnokd
Copy link
Member

This PR fixes the hang in Completable.concat(Observable) and Completable.merge(Observable) mainly due to using subscribe instead of unsafeSubscribe. The underlying problem was that SafeSubscriber unsubscribed the dowstream consumer which cancelled the outstanding elements of range.

In addition, I've upgraded the concat(Observable) to use an up-to-date concatenation algorithm and more compact memory footprint.

@codecov-io
Copy link

codecov-io commented Nov 14, 2016

Current coverage is 84.28% (diff: 91.66%)

Merging #4849 into 1.x will increase coverage by 0.14%

@@                1.x      #4849   diff @@
==========================================
  Files           285        285          
  Lines         17763      17765     +2   
  Methods           0          0          
  Messages          0          0          
  Branches       2691       2691          
==========================================
+ Hits          14947      14974    +27   
+ Misses         1956       1938    -18   
+ Partials        860        853     -7   

Powered by Codecov. Last update dc63e53...fb3d0e8

@akarnokd akarnokd merged commit 745a922 into ReactiveX:1.x Nov 14, 2016
@akarnokd akarnokd deleted the CompletableConcatFix branch November 14, 2016 19:42
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.

None yet

3 participants