DistinctAsyncIterator<TSource>
Namespace: SnowBank.Linq.Async.Iterators · class
Implements: AsyncFilterIterator<TSource, TSource>, IAsyncLinqQuery<TSource>, IAsyncQuery<TSource>, IAsyncEnumerable<TSource>, IAsyncEnumerator<TSource>, IAsyncDisposable
Filters duplicate items from an async sequence
Constructors
DistinctAsyncIterator<TSource>
DistinctAsyncIterator<TSource>(IAsyncQuery<TSource> source, IEqualityComparer<TSource> comparer)
Methods
ExecuteAsync
Task ExecuteAsync(Action<TSource> handler)
Execute an action on the result of this async sequence
Task ExecuteAsync(Func<TSource, CancellationToken, Task> handler)
Execute an action on the result of this async sequence
Task ExecuteAsync<TState>(TState state, Action<TState, TSource> handler)
Execute an action on the result of this async sequence
Task<TAggregate> ExecuteAsync<TAggregate>(TAggregate seed, Func<TAggregate, TSource, TAggregate> handler)
Execute an action on the result of this async sequence
Task<TAggregate> ExecuteAsync<TState, TAggregate>(TState state, TAggregate seed, Func<TState, TAggregate, TSource, TAggregate> handler)
Execute an action on the result of this async sequence