,System.Func{--0,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask},System.Func{System.Exception,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask},System.Func{ReactiveUI.Primitives.Async.Result,System.Threading.Tasks.ValueTask})} ,System.Action{--0})} ,System.Action{--0},System.Action{System.Exception},System.Action)}
SignalAsyncExtensions.Tap(IObservableAsync, Func?, Func?, Func?) method¶
Defined in
Type: SignalAsyncExtensions
Namespace: ReactiveUI.Primitives.Async
Assembly: ReactiveUI.Primitives.Async.dll
Applies to
net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481
Overloads¶
- 1.
public static IObservableAsync<T> Tap<T>(this IObservableAsync<T> @this, Func<T, CancellationToken, ValueTask>? onNext, Func<Exception, CancellationToken, ValueTask>? onErrorResume, Func<Result, ValueTask>? onCompleted) - 2.
public static IObservableAsync<T> Tap<T>(this IObservableAsync<T> @this, Action<T> onNext) - 3.
public static IObservableAsync<T> Tap<T>(this IObservableAsync<T> @this, Action<T> onNext, Action<Exception> onError, Action onCompleted) where T : notnull
1. Overload¶
public static IObservableAsync<T> Tap<T>(this IObservableAsync<T> @this, Func<T, CancellationToken, ValueTask>? onNext, Func<Exception, CancellationToken, ValueTask>? onErrorResume, Func<Result, ValueTask>? onCompleted)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
onNext | Func | -- |
onErrorResume | Func | -- |
onCompleted | Func | -- |
Returns: IObservableAsync
2. Overload¶
public static IObservableAsync<T> Tap<T>(this IObservableAsync<T> @this, Action<T> onNext)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
onNext | Action | -- |
Returns: IObservableAsync
3. Overload¶
public static IObservableAsync<T> Tap<T>(this IObservableAsync<T> @this, Action<T> onNext, Action<Exception> onError, Action onCompleted) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
onNext | Action | -- |
onError | Action | -- |
onCompleted | Action | -- |
Returns: IObservableAsync