Skip to content

,System.Func{System.Threading.Tasks.ValueTask})} ,System.Action)}

SignalAsyncExtensions.OnDispose(IObservableAsync, 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> OnDispose<T>(this IObservableAsync<T> @this, Func<ValueTask> disposeAction) where T : notnull
  • 2. public static IObservableAsync<T> OnDispose<T>(this IObservableAsync<T> @this, Action disposeAction) where T : notnull

1. Overload

public static IObservableAsync<T> OnDispose<T>(this IObservableAsync<T> @this, Func<ValueTask> disposeAction) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
this[IObservableAsync](#--
disposeActionFunc--

Returns: IObservableAsync

2. Overload

public static IObservableAsync<T> OnDispose<T>(this IObservableAsync<T> @this, Action disposeAction) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
this[IObservableAsync](#--
disposeActionAction--

Returns: IObservableAsync