damianpetla
04/26/2017, 5:56 AMObservable.combineLatest
RxJava2. I could not even compile simple example like this
val obs1 = Observable.just(true)
val obs2 = Observable.just(false)
Observable.combineLatest(obs1, obs2, { t1, t2 -> t1 and t2 })//compile error
I had to explicitly tell what kind of combiner function that is
val obs1 = Observable.just(true)
val obs2 = Observable.just(false)
Observable.combineLatest(obs1, obs2, BiFunction<Boolean, Boolean, Boolean> { t1, t2 -> t1 and t2 })
In case JavaRx1 it was inferred properly based on observables I was passing in. Does anyone know why it has changed?