예제 #1
0
        public static UniTask <long> LongCountAwaitWithCancellationAsync <TSource>(this IUniTaskAsyncEnumerable <TSource> source, Func <TSource, CancellationToken, UniTask <Boolean> > predicate, CancellationToken cancellationToken = default)
        {
            Error.ThrowArgumentNullException(source, nameof(source));
            Error.ThrowArgumentNullException(predicate, nameof(predicate));

            return(LongCount.LongCountAwaitWithCancellationAsync(source, predicate, cancellationToken));
        }
예제 #2
0
        public static UniTask <long> LongCountAsync <TSource>(this IUniTaskAsyncEnumerable <TSource> source,
                                                              CancellationToken cancellationToken = default)
        {
            Error.ThrowArgumentNullException(source, nameof(source));

            return(LongCount.LongCountAsync(source, cancellationToken));
        }