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

Add Completable.zip (alias for Completable.merge) #1929

Merged
merged 3 commits into from
Apr 15, 2019
Merged

Conversation

freak4pc
Copy link
Member

@freak4pc freak4pc commented Apr 14, 2019

@kzaher We've discussed this before in a different thread and I bumped into this as well, when someone asked how to do this in a Slack group.

I was actually wondering if we should just entirely remove merge (or deprecate it) and leave only zip, as long as we're doing breaking changes. Since zip better describes the behavior, and merge is about merging of elements, which are not in the context of Completable.

WDYT ?

@freak4pc freak4pc added this to the RxSwift 5 milestone Apr 14, 2019
@freak4pc freak4pc requested a review from kzaher April 14, 2019 07:34
@freak4pc freak4pc self-assigned this Apr 14, 2019
@kzaher
Copy link
Member

kzaher commented Apr 14, 2019

I don't think we can do this yet. We first need to change zip operator.

@freak4pc
Copy link
Member Author

How so? It seems the current behavior represents zip accurately - e.g. "pairs" of completion (given there are no elements, just completion).

merge really doesn't accurately describe the behavior IMO.

@kzaher
Copy link
Member

kzaher commented Apr 15, 2019

The answer is here f962ddd. I've fixed it now.

@kzaher kzaher merged commit f5cb27b into develop Apr 15, 2019
@freak4pc
Copy link
Member Author

Oh, that's very interesting. Thanks !

@freak4pc freak4pc deleted the merge-alias-zip branch April 15, 2019 18:34
@freak4pc
Copy link
Member Author

@kzaher One last though on this topic - I still think it might be worth to entirely deprecate Completable.merge and leave only Completable.zip - merge doesn't properly describe what this does IMO. What do you think? Worth doing, or better to leave as is?

@kzaher
Copy link
Member

kzaher commented Apr 15, 2019

I still think it might be worth to entirely deprecate Completable.merge

@freak4pc Let's deprecate it.

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