-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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: No more need to convert Singles to Observables for Single.zip() #3579
1.x: No more need to convert Singles to Observables for Single.zip() #3579
Conversation
6b8b630
to
57dd6d9
Compare
👍 |
@@ -966,8 +966,13 @@ public void onError(Throwable error) { | |||
* @return a Single that emits the zipped results | |||
* @see <a href="http://reactivex.io/documentation/operators/zip.html">ReactiveX operators documentation: Zip</a> | |||
*/ | |||
public final static <T1, T2, R> Single<R> zip(Single<? extends T1> o1, Single<? extends T2> o2, final Func2<? super T1, ? super T2, ? extends R> zipFunction) { | |||
return just(new Observable<?>[] { asObservable(o1), asObservable(o2) }).lift(new OperatorZip<R>(zipFunction)); | |||
public static <T1, T2, R> Single<R> zip(Single<? extends T1> s1, Single<? extends T2> s2, final Func2<? super T1, ? super T2, ? extends R> zipFunction) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please add final
back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or remove final
from all static methods in another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm for the removal as well, it's redundant. (I also remember an argument about it some time back.)
Could you add |
57dd6d9
to
f5716b4
Compare
f5716b4
to
b4a6fdd
Compare
Sorry, was busy… @zsxwing added |
👍 |
…-observable 1.x: No more need to convert Singles to Observables for Single.zip()
PTAL