ReactiveUI.Primitives.Signals.KeepWithSignal<T, TState>
Filters source values using a caller-supplied state value, without allocating a per-value closure: the state is stored on the sink and passed to the predicate for each element.
namespace ReactiveUI.Primitives.Signals
{
public sealed class KeepWithSignal<[Nullable(2)] T, [Nullable(2)] TState> : IRequireCurrentThread<T>, IObservable<T>
{
public KeepWithSignal(IObservable<T> source, TState state, Func<TState, T, bool> predicate);
public bool IsRequiredSubscribeOnCurrentThread();
public IDisposable Subscribe(IObserver<T> observer);
}
}