<PackageReference Include="ReactiveUI.Primitives" Version="8.3.0" />

ReactiveUI.Primitives.Advanced.FinallySignal<T>

public sealed class FinallySignal<T> : IRequireCurrentThread<T>, IObservable<T>
Runs an action once the subscription ends, whether it terminated or was disposed.
public FinallySignal(IObservable<T> source, Action finallyAction)

Runs an action once the subscription ends, whether it terminated or was disposed.

Reports that subscription runs on the calling thread.

public IDisposable Subscribe(IObserver<T> observer)

Subscribes the observer and attaches the end-of-subscription action.