Class SwitchAllOperator
Extension methods implementing the switchAll operator.
public static class SwitchAllOperator
- Inheritance
-
System.ObjectSwitchAllOperator
Methods
SwitchAll<T>(Observable<Observable<T>>)
Converts a higher-order observable (an observable of observables) into a first-order observable that
mirrors only the most recently produced inner observable, unsubscribing from any previous one as soon as
a new one arrives. Equivalent to source.SwitchMap(x => x).
public static Observable<T> SwitchAll<T>(this Observable<Observable<T>> source)
Parameters
sourceObservable<Observable<T>>The higher-order source sequence.
Returns
- Observable<T>
An observable that emits the values of only the most recently produced inner observable.
Type Parameters
TThe type of values emitted by the inner observables.