Example #1
0
        public static IUniTaskOrderedAsyncEnumerable <TSource> ThenByDescendingAwaitWithCancellation <TSource, TKey>(this IUniTaskOrderedAsyncEnumerable <TSource> source, Func <TSource, CancellationToken, UniTask <TKey> > keySelector)
        {
            Error.ThrowArgumentNullException(source, nameof(source));
            Error.ThrowArgumentNullException(keySelector, nameof(keySelector));

            return(source.CreateOrderedEnumerable(keySelector, Comparer <TKey> .Default, true));
        }
Example #2
0
        public static IUniTaskOrderedAsyncEnumerable <TSource> ThenByAwait <TSource, TKey>(this IUniTaskOrderedAsyncEnumerable <TSource> source, Func <TSource, UniTask <TKey> > keySelector)
        {
            Error.ThrowArgumentNullException(source, nameof(source));
            Error.ThrowArgumentNullException(keySelector, nameof(keySelector));

            return(source.CreateOrderedEnumerable(keySelector, Comparer <TKey> .Default, false));
        }
Example #3
0
        public static IUniTaskOrderedAsyncEnumerable <TSource> ThenByDescendingAwait <TSource, TKey>(this IUniTaskOrderedAsyncEnumerable <TSource> source, Func <TSource, UniTask <TKey> > keySelector, IComparer <TKey> comparer)
        {
            Error.ThrowArgumentNullException(source, nameof(source));
            Error.ThrowArgumentNullException(keySelector, nameof(keySelector));
            Error.ThrowArgumentNullException(comparer, nameof(comparer));

            return(source.CreateOrderedEnumerable(keySelector, comparer, true));
        }