Class CombineLatestWithOperator
Extension methods implementing the combineLatestWith operator.
public static class CombineLatestWithOperator
- Inheritance
-
System.ObjectCombineLatestWithOperator
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
sourceObservable<T>The source sequence, combined alongside
otherSources.otherSourcesObservable<T>[]The other sequences to combine with
source.
Returns
- Observable<IReadOnlyList<T>>
An observable that emits a list of the latest values from
sourceand every one ofotherSources.
Type Parameters
TThe type of values shared by
sourceandotherSources.
Remarks
Same-type-only, like CombineLatest<T>(params Observable<T>[]) itself, rather than rxjs's heterogeneously-typed tuple result.