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

ReactiveUI.Primitives.Advanced.DistinctByWitness<T, TKey>

public sealed class DistinctByWitness<T, TKey> : IObserver<T>, IDisposable
Sink that forwards the first value seen for each key the selector produces.
namespace ReactiveUI.Primitives.Advanced { public sealed class DistinctByWitness<[Nullable(2)] T, [Nullable(2)] TKey> : IObserver<T>, IDisposable { public DistinctByWitness(IObserver<T> observer, Func<T, TKey> keySelector, IEqualityComparer<TKey> comparer); public void OnNext(T value); public void OnError(Exception error); public void OnCompleted(); public void SetSubscription(IDisposable subscription); public void Dispose(); } }