System.Linq.Async by .NET Foundation and Contributors

<PackageReference Include="System.Linq.Async" Version="4.0.0-preview.1.build.745" />

 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)