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.
Initializes a new instance of the KeepWithSignal<T, U> class.
public static IObservable<T> Create(IObservable<T> source, TState state, Func<TState, T, bool> predicate)
Creates a stateful filter sequence with empty/never short-circuiting.
Determines whether the sink must subscribe on the current thread.
Subscribes the observer to the filtered sequence.