<PackageReference Include="System.Linq.AsyncEnumerable" Version="11.0.0-preview.5.26302.115" />

System.Linq.AsyncEnumerable

public static class AsyncEnumerable
Provides a set of static methods for querying objects that implement IAsyncEnumerable<T>.
namespace System.Linq { public static class AsyncEnumerable { public static ValueTask<TSource> AggregateAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, TSource, TSource> func, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> AggregateAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, TSource, CancellationToken, ValueTask<TSource>> func, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TAccumulate> AggregateAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate>(this IAsyncEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TAccumulate> AggregateAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate>(this IAsyncEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TResult> AggregateAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, Func<TAccumulate, TResult> resultSelector, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TResult> AggregateAsync<TSource, TAccumulate, TResult>(this IAsyncEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, Func<TAccumulate, CancellationToken, ValueTask<TResult>> resultSelector, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey> keyComparer = null); public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, TAccumulate seed, Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, IEqualityComparer<TKey> keyComparer = null); public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, TAccumulate> seedSelector, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey> keyComparer = null); public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TAccumulate>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, Func<TKey, CancellationToken, ValueTask<TAccumulate>> seedSelector, Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, IEqualityComparer<TKey> keyComparer = null); public static ValueTask<bool> AllAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<bool> AllAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<bool> AnyAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<bool> AnyAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<bool> AnyAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TSource> Append<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource element); public static ValueTask<double> AverageAsync(this IAsyncEnumerable<int> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double> AverageAsync(this IAsyncEnumerable<long> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<float> AverageAsync(this IAsyncEnumerable<float> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double> AverageAsync(this IAsyncEnumerable<double> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<decimal> AverageAsync(this IAsyncEnumerable<decimal> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double?> AverageAsync(this IAsyncEnumerable<int?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double?> AverageAsync(this IAsyncEnumerable<long?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<float?> AverageAsync(this IAsyncEnumerable<float?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double?> AverageAsync(this IAsyncEnumerable<double?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<decimal?> AverageAsync(this IAsyncEnumerable<decimal?> source, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TResult> Cast<[System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<object> source); public static IAsyncEnumerable<TSource[]> Chunk<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int size); public static IAsyncEnumerable<TSource> Concat<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second); public static ValueTask<bool> ContainsAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource value, IEqualityComparer<TSource> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<int> CountAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<int> CountAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<int> CountAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<long> LongCountAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<long> LongCountAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<long> LongCountAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<KeyValuePair<TKey, int>> CountBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> keyComparer = null); public static IAsyncEnumerable<KeyValuePair<TKey, int>> CountBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> keyComparer = null); public static IAsyncEnumerable<TSource> DefaultIfEmpty<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source); public static IAsyncEnumerable<TSource> DefaultIfEmpty<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource defaultValue); public static IAsyncEnumerable<TSource> Distinct<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, IEqualityComparer<TSource> comparer = null); public static IAsyncEnumerable<TSource> DistinctBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TSource> DistinctBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null); public static ValueTask<TSource> ElementAtAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int index, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> ElementAtOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int index, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> ElementAtAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Index index, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> ElementAtOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Index index, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TResult> Empty<[System.Runtime.CompilerServices.Nullable(2)] TResult>(); public static IAsyncEnumerable<TSource> Except<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource> comparer = null); public static IAsyncEnumerable<TSource> ExceptBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TKey> second, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TSource> ExceptBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TKey> second, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null); public static ValueTask<TSource> FirstAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> FirstOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TResult> FullJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> FullJoin<TOuter, TInner, TKey, TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, Func<TOuter, TInner, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> FullJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> FullJoin<TOuter, TInner, TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<IGrouping<TKey, TSource>> GroupBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<IGrouping<TKey, TSource>> GroupBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<IGrouping<TKey, TElement>> GroupBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, Func<TSource, CancellationToken, ValueTask<TElement>> elementSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> GroupBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, IEnumerable<TSource>, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> GroupBy<TSource, TKey, TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, Func<TKey, IEnumerable<TSource>, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> GroupBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TElement, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<TKey, IEnumerable<TElement>, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, Func<TSource, CancellationToken, ValueTask<TElement>> elementSelector, Func<TKey, IEnumerable<TElement>, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<IGrouping<TOuter, TInner>> GroupJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<IGrouping<TOuter, TInner>> GroupJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> GroupJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, Func<TOuter, IEnumerable<TInner>, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(int Index, TSource Item)> Index<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source); public static IAsyncEnumerable<TSource> Intersect<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource> comparer = null); public static IAsyncEnumerable<TSource> IntersectBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TKey> second, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TSource> IntersectBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TKey> second, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> Join<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> Join<TOuter, TInner, TKey, TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, Func<TOuter, TInner, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> Join<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> Join<TOuter, TInner, TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static ValueTask<TSource> LastAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> LastOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TResult> LeftJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, Func<TOuter, TInner, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> LeftJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> LeftJoin<TOuter, TInner, TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static ValueTask<TSource> MaxAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, IComparer<TSource> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> MaxByAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> MaxByAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> MinAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, IComparer<TSource> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> MinByAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> MinByAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TResult> OfType<[System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<object> source); public static IOrderedAsyncEnumerable<T> Order<[System.Runtime.CompilerServices.Nullable(2)] T>(this IAsyncEnumerable<T> source, IComparer<T> comparer = null); public static IOrderedAsyncEnumerable<TSource> OrderBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<TSource> OrderBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<T> OrderDescending<[System.Runtime.CompilerServices.Nullable(2)] T>(this IAsyncEnumerable<T> source, IComparer<T> comparer = null); public static IOrderedAsyncEnumerable<TSource> OrderByDescending<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<TSource> OrderByDescending<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<TSource> ThenBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IOrderedAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<TSource> ThenBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IOrderedAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<TSource> ThenByDescending<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IOrderedAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer = null); public static IOrderedAsyncEnumerable<TSource> ThenByDescending<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IOrderedAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IComparer<TKey> comparer = null); public static IAsyncEnumerable<TSource> Prepend<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource element); public static IAsyncEnumerable<int> Range(int start, int count); public static IAsyncEnumerable<TResult> Repeat<[System.Runtime.CompilerServices.Nullable(2)] TResult>(TResult element, int count); public static IAsyncEnumerable<TSource> Reverse<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source); public static IAsyncEnumerable<TResult> RightJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, Func<TOuter, TInner, CancellationToken, ValueTask<TResult>> resultSelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> RightJoin<[System.Runtime.CompilerServices.Nullable(2)] TOuter, [System.Runtime.CompilerServices.Nullable(2)] TInner, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<(TOuter Outer, TInner Inner)> RightJoin<TOuter, TInner, TKey>(this IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner, Func<TOuter, CancellationToken, ValueTask<TKey>> outerKeySelector, Func<TInner, CancellationToken, ValueTask<TKey>> innerKeySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TResult> Select<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, TResult> selector); public static IAsyncEnumerable<TResult> Select<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TResult>> selector); public static IAsyncEnumerable<TResult> Select<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, TResult> selector); public static IAsyncEnumerable<TResult> Select<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, CancellationToken, ValueTask<TResult>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, IEnumerable<TResult>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<IEnumerable<TResult>>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, IAsyncEnumerable<TResult>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, CancellationToken, ValueTask<IEnumerable<TResult>>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, IAsyncEnumerable<TResult>> selector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TCollection, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector); public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<IEnumerable<TCollection>>> collectionSelector, Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TCollection, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, IAsyncEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TCollection, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, IAsyncEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TCollection, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector); public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, CancellationToken, ValueTask<IEnumerable<TCollection>>> collectionSelector, Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector); public static IAsyncEnumerable<TResult> SelectMany<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TCollection, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TSource> source, Func<TSource, int, IAsyncEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector); public static ValueTask<bool> SequenceEqualAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TSource> Shuffle<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source); public static ValueTask<TSource> SingleAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<TSource> SingleOrDefaultAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, TSource defaultValue, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TSource> Skip<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int count); public static IAsyncEnumerable<TSource> SkipLast<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int count); public static IAsyncEnumerable<TSource> SkipWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate); public static IAsyncEnumerable<TSource> SkipWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate); public static IAsyncEnumerable<TSource> SkipWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, int, bool> predicate); public static IAsyncEnumerable<TSource> SkipWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, int, CancellationToken, ValueTask<bool>> predicate); public static ValueTask<int> SumAsync(this IAsyncEnumerable<int> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<long> SumAsync(this IAsyncEnumerable<long> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<float> SumAsync(this IAsyncEnumerable<float> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double> SumAsync(this IAsyncEnumerable<double> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<decimal> SumAsync(this IAsyncEnumerable<decimal> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<int?> SumAsync(this IAsyncEnumerable<int?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<long?> SumAsync(this IAsyncEnumerable<long?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<float?> SumAsync(this IAsyncEnumerable<float?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<double?> SumAsync(this IAsyncEnumerable<double?> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<decimal?> SumAsync(this IAsyncEnumerable<decimal?> source, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TSource> Take<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int count); public static IAsyncEnumerable<TSource> Take<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Range range); public static IAsyncEnumerable<TSource> TakeLast<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, int count); public static IAsyncEnumerable<TSource> TakeWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate); public static IAsyncEnumerable<TSource> TakeWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate); public static IAsyncEnumerable<TSource> TakeWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, int, bool> predicate); public static IAsyncEnumerable<TSource> TakeWhile<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, int, CancellationToken, ValueTask<bool>> predicate); public static ValueTask<TSource[]> ToArrayAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TSource> ToAsyncEnumerable<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IEnumerable<TSource> source); public static ValueTask<Dictionary<TKey, TValue>> ToDictionaryAsync<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IAsyncEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<Dictionary<TKey, TValue>> ToDictionaryAsync<TKey, [System.Runtime.CompilerServices.Nullable(2)] TValue>(this IAsyncEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, TKey, [System.Runtime.CompilerServices.Nullable(2)] TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, Func<TSource, CancellationToken, ValueTask<TElement>> elementSelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<HashSet<TSource>> ToHashSetAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, IEqualityComparer<TSource> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<List<TSource>> ToListAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey, [System.Runtime.CompilerServices.Nullable(2)] TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, Func<TSource, CancellationToken, ValueTask<TElement>> elementSelector, IEqualityComparer<TKey> comparer = null, CancellationToken cancellationToken = default(CancellationToken)); public static IAsyncEnumerable<TSource> Union<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second, IEqualityComparer<TSource> comparer = null); public static IAsyncEnumerable<TSource> UnionBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TSource> UnionBy<[System.Runtime.CompilerServices.Nullable(2)] TSource, [System.Runtime.CompilerServices.Nullable(2)] TKey>(this IAsyncEnumerable<TSource> first, IAsyncEnumerable<TSource> second, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey> comparer = null); public static IAsyncEnumerable<TSource> Where<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate); public static IAsyncEnumerable<TSource> Where<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate); public static IAsyncEnumerable<TSource> Where<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, int, bool> predicate); public static IAsyncEnumerable<TSource> Where<[System.Runtime.CompilerServices.Nullable(2)] TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, int, CancellationToken, ValueTask<bool>> predicate); public static IAsyncEnumerable<TResult> Zip<[System.Runtime.CompilerServices.Nullable(2)] TFirst, [System.Runtime.CompilerServices.Nullable(2)] TSecond, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TFirst> first, IAsyncEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector); public static IAsyncEnumerable<TResult> Zip<[System.Runtime.CompilerServices.Nullable(2)] TFirst, [System.Runtime.CompilerServices.Nullable(2)] TSecond, [System.Runtime.CompilerServices.Nullable(2)] TResult>(this IAsyncEnumerable<TFirst> first, IAsyncEnumerable<TSecond> second, Func<TFirst, TSecond, CancellationToken, ValueTask<TResult>> resultSelector); public static IAsyncEnumerable<(TFirst First, TSecond Second)> Zip<[System.Runtime.CompilerServices.Nullable(2)] TFirst, [System.Runtime.CompilerServices.Nullable(2)] TSecond>(this IAsyncEnumerable<TFirst> first, IAsyncEnumerable<TSecond> second); public static IAsyncEnumerable<(TFirst First, TSecond Second, TThird Third)> Zip<[System.Runtime.CompilerServices.Nullable(2)] TFirst, [System.Runtime.CompilerServices.Nullable(2)] TSecond, [System.Runtime.CompilerServices.Nullable(2)] TThird>(this IAsyncEnumerable<TFirst> first, IAsyncEnumerable<TSecond> second, IAsyncEnumerable<TThird> third); } }