Method SwitchLatestAsync
SwitchLatestAsync<TSource, TResult>(IObservable<TSource>, Func<TSource, CancellationToken, Task<TResult>>)
Declaration
public static IObservable<TResult> SwitchLatestAsync<TSource, TResult>(this IObservable<TSource> source, Func<TSource, CancellationToken, Task<TResult>> asyncMethod)
Parameters
Type | Name | Description |
---|---|---|
IObservable<TSource> | source | |
Func<TSource, CancellationToken, Task<TResult>> | asyncMethod |
Returns
Type | Description |
---|---|
IObservable<TResult> |
Type Parameters
Name | Description |
---|---|
TSource | |
TResult |