dimsuz
04/17/2018, 5:02 PMsubscribe that the emitted item is the first one.
I tried to do this
Observable.combineLatest(
Observable.just(true, false),
Observable.just(SomeData(), SomeData(), SomeData(), ....).delay(3000), // emulates long running operation
BiFunction { isFirst, data -> isFirst to data })
.subscribe({ (isFirst, data) -> println(isFirst) })
it prints false and never prints true - I guess this is because just emits all items way faster than second one catches up.
Note that second observable can emit many items, how many is unknown in advance