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: dedicated Single.zip implementation, no dispose on all-success #5027

Merged
merged 1 commit into from
Jan 27, 2017

Conversation

akarnokd
Copy link
Member

This adds a dedicated implementation for zipping Singles (adapted from MaybeZipX).

Routing the original zip through Flowable added the usually unwanted behavior of cancelling the sources if one of them reports a completion after a row has been consumed from all (when converted to Flowable, SingleObserver.onSuccess becomes Subscriber.onNext + onComplete). Since there is only onSuccess and onError in Single, there is no need to dispose the sources once all signalled their only onSuccess.

Related: #5024.

@codecov-io
Copy link

codecov-io commented Jan 27, 2017

Current coverage is 95.59% (diff: 99.24%)

Merging #5027 into 2.x will decrease coverage by 0.10%

@@                2.x      #5027   diff @@
==========================================
  Files           609        611     +2   
  Lines         39427      39538   +111   
  Methods           0          0          
  Messages          0          0          
  Branches       6030       6051    +21   
==========================================
+ Hits          37731      37796    +65   
- Misses          738        757    +19   
- Partials        958        985    +27   

Powered by Codecov. Last update d93ee2b...ddcbc3b

@akarnokd akarnokd merged commit ee004ad into ReactiveX:2.x Jan 27, 2017
@akarnokd akarnokd deleted the SingleZipNoDispose branch January 27, 2017 16:35
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.

3 participants