<PackageReference Include="System.Linq.Async" Version="4.0.0" />

System.Linq.AsyncCachingComparerWithTaskAndCancellation<TElement, TKey>

protected readonly IComparer<TKey> _comparer

protected readonly bool _descending

protected readonly Func<TElement, CancellationToken, ValueTask<TKey>> _keySelector

protected TKey _lastKey

public AsyncCachingComparerWithTaskAndCancellation(Func<TElement, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer, bool descending)