Example #1
0
 internal AsyncSelectorEnumerableSorter(Func <TElement, UniTask <TKey> > keySelector, IComparer <TKey> comparer, bool descending, AsyncEnumerableSorter <TElement> next)
 {
     this.keySelector = keySelector;
     this.comparer    = comparer;
     this.descending  = descending;
     this.next        = next;
 }
Example #2
0
 internal AsyncSelectorWithCancellationEnumerableSorter(Func <TElement, CancellationToken, UniTask <TKey> > keySelector, IComparer <TKey> comparer, bool descending, AsyncEnumerableSorter <TElement> next, CancellationToken cancellationToken)
 {
     this.keySelector       = keySelector;
     this.comparer          = comparer;
     this.descending        = descending;
     this.next              = next;
     this.cancellationToken = cancellationToken;
 }
 internal abstract AsyncEnumerableSorter <TElement> GetAsyncEnumerableSorter(AsyncEnumerableSorter <TElement> next,
                                                                             CancellationToken cancellationToken);