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)); }
public static UniTask <long> LongCountAsync <TSource>(this IUniTaskAsyncEnumerable <TSource> source, CancellationToken cancellationToken = default) { Error.ThrowArgumentNullException(source, nameof(source)); return(LongCount.LongCountAsync(source, cancellationToken)); }