Table of Contents

Class CombineLatestWithOperator

Namespace
RxSharp.Operators
Assembly
RxSharp.dll

Extension methods implementing the combineLatestWith operator.

public static class CombineLatestWithOperator
Inheritance
System.Object
CombineLatestWithOperator

Methods

CombineLatestWith<T>(Observable<T>, params Observable<T>[])

Subscribes to source and every one of otherSources, emitting a list of the latest values from each once every one of them has emitted at least once, and again every time any of them emits thereafter. Pipeable-operator sugar over CombineLatest<T>(params Observable<T>[]) with source prepended: source.CombineLatestWith(a, b) is the same as Observable.CombineLatest(source, a, b).

public static Observable<IReadOnlyList<T>> CombineLatestWith<T>(this Observable<T> source, params Observable<T>[] otherSources)

Parameters

source Observable<T>

The source sequence, combined alongside otherSources.

otherSources Observable<T>[]

The other sequences to combine with source.

Returns

Observable<IReadOnlyList<T>>

An observable that emits a list of the latest values from source and every one of otherSources.

Type Parameters

T

The type of values shared by source and otherSources.

Remarks

Same-type-only, like CombineLatest<T>(params Observable<T>[]) itself, rather than rxjs's heterogeneously-typed tuple result.