-
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
Add combineLatest overload for Collection #3660
Conversation
Can we revisit this once #3507 is merged? |
Yep. That allows exposing |
* Observables by means of the given aggregation function | ||
* @see <a href="http://reactivex.io/documentation/operators/combinelatest.html">ReactiveX operators documentation: CombineLatest</a> | ||
*/ | ||
public static <T, R> Observable<R> combineLatest(Collection<? extends Observable<? extends T>> sources, FuncN<? extends R> combineFunction) { |
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.
final
?
👍 Don't you want to add tests for your new |
The tests were modified to use it. On Mon, Feb 1, 2016 at 10:27 AM Artem Zinnatullin [email protected]
|
Tests for |
They use that API. |
2.x already uses
Iterable
, but that's a very drastic change compared to justCollection
.Motivation here is that I'm using set bindings to create observables in a dependency injector and I want to skip the current
new ArrayList<>(sources)
that I have to do on the set.