<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.3.0" />

ReactiveUI.Primitives.Signals.TapWithSignal<T, TState>

public sealed class TapWithSignal<T, TState> : IRequireCurrentThread<T>, IObservable<T>
Invokes a stateful action for each source value while forwarding the value unchanged, without allocating a per-value closure: the state is stored on the sink and passed to the action for each element.
public TapWithSignal(IObservable<T> source, TState state, Action<TState, T> onNext)

Invokes a stateful action for each source value while forwarding the value unchanged, without allocating a per-value closure: the state is stored on the sink and passed to the action for each element.

Determines whether the sink must subscribe on the current thread.

public IDisposable Subscribe(IObserver<T> observer)

Subscribes the observer to the tapped sequence.