Table of Contents

Class SwitchAllOperator

Namespace
RxSharp.Operators
Assembly
RxSharp.dll

Extension methods implementing the switchAll operator.

public static class SwitchAllOperator
Inheritance
System.Object
SwitchAllOperator

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

source Observable<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

T

The type of values emitted by the inner observables.