Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.pubsub/Observables/combine

combine

@JvmStatic
fun <T1, T2, R> combine(observable1: Observable<T1>, observable2: Observable<T2>, combiner: (T1, T2) -> R): Observable<R>

Returns an observable that combines the emissions of this observable the given other. The downstream emission is the result of applying the combiner function to the latest emissions of both observables - and are only possible once both this and the other have emitted at least one value.


@JvmStatic
fun <T, R> combine(sources: Iterable<Observable<T>>, combiner: (Iterable<T>) -> R): Observable<R>
@JvmStatic
fun <T, R> combine(vararg sources: Observable<T>, combiner: (Iterable<T>) -> R): Observable<R>

Returns an observable that combines the emissions of all sources. The downstream emission is the result of applying the combiner function to the latest emissions of all sources - and are only possible once all sources have emitted at least one value.

Generated by Dokka
(c) Tealium 2026