combineLatest

fun <T, R> combineLatest(sources: List<Observable<T>>, combineFunction: FuncN<R>): Observable<R>

Combines a list of source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.

Return

an Observable that emits items that are the result of combining the items emitted by the source Observables by means of the given aggregation function

Parameters

T

the common base type of source values

R

the result type

sources

the list of source Observables

combineFunction

the aggregation function used to combine the items emitted by the source Observables

See also