<PackageReference Include="AsyncEnumerator" Version="2.1.0" />
API Differences between 2.1.0 and 2.0.1
40 Additions
0 Removals
System.Collections.Async
-
public static class IAsyncEnumerableExtensions
- public static IAsyncEnumerable<List<TSource>> Batch<TSource>(this IAsyncEnumerable<TSource> source, int batchSize)
- public static IAsyncEnumerable<TStandardCollection> Batch<TSource, TStandardCollection>(this IAsyncEnumerable<TSource> source, int batchSize)
- public static IAsyncEnumerable<List<TSource>> Batch<TSource>(this IAsyncEnumerable<TSource> source, long maxBatchWeight, Func<TSource, long> weightSelector)
- public static IAsyncEnumerable<TStandardCollection> Batch<TSource, TStandardCollection>(this IAsyncEnumerable<TSource> source, long maxBatchWeight, Func<TSource, long> weightSelector)
- public static IAsyncEnumerable<List<TSource>> Batch<TSource>(this IAsyncEnumerable<TSource> source, int maxItemsInBatch, long maxBatchWeight, Func<TSource, long> weightSelector)
- public static IAsyncEnumerable<TStandardCollection> Batch<TSource, TStandardCollection>(this IAsyncEnumerable<TSource> source, int maxItemsInBatch, long maxBatchWeight, Func<TSource, long> weightSelector)
- public static IAsyncEnumerable<TBatch> Batch<TSource, TBatch>(this IAsyncEnumerable<TSource> source, int? maxItemsInBatch, long maxBatchWeight, Func<TSource, long> weightSelector, Func<int?, TBatch> createBatch, Action<TBatch, TSource> addItem)
- public static IAsyncEnumerable<TResult> Cast<TResult>(this IAsyncEnumerable source)
- public static IAsyncEnumerable<TSource> DefaultIfEmpty<TSource>(this IAsyncEnumerable<TSource> source)
- public static IAsyncEnumerable<TSource> DefaultIfEmpty<TSource>(this IAsyncEnumerable<TSource> source, TSource defaultValue)
- public static Task<TSource> FirstAsync<TSource>(this IAsyncEnumerable<TSource> source, string exceptionMessage, CancellationToken token = default)
- public static Task<TSource> FirstAsync<TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, string exceptionMessage, CancellationToken token = default)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerable<TSource> source, CancellationToken token = default)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerable<TSource> source, string noneExceptionMessage, string manyExceptionMessage, CancellationToken token = default)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken token = default)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, string noneExceptionMessage, string manyExceptionMessage, CancellationToken token = default)
- public static Task<TSource> SingleOrDefaultAsync<TSource>(this IAsyncEnumerable<TSource> source, CancellationToken token = default)
- public static Task<TSource> SingleOrDefaultAsync<TSource>(this IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate, CancellationToken token = default)
- public static IAsyncEnumerable<T> UnionAll<T>(this IAsyncEnumerable<T> first, IAsyncEnumerable<T> second)
- public static IAsyncEnumerable<T> UnionAll<T>(this IEnumerable<IAsyncEnumerable<T>> collections)
-
public static class IAsyncEnumeratorExtensions
- public static IAsyncEnumerator<List<TSource>> Batch<TSource>(this IAsyncEnumerator<TSource> source, int batchSize, bool disposeSource = true)
- public static IAsyncEnumerator<TStandardCollection> Batch<TSource, TStandardCollection>(this IAsyncEnumerator<TSource> source, int batchSize, bool disposeSource = true)
- public static IAsyncEnumerator<List<TSource>> Batch<TSource>(this IAsyncEnumerator<TSource> source, long maxBatchWeight, Func<TSource, long> weightSelector, bool disposeSource = true)
- public static IAsyncEnumerator<TStandardCollection> Batch<TSource, TStandardCollection>(this IAsyncEnumerator<TSource> source, long maxBatchWeight, Func<TSource, long> weightSelector, bool disposeSource = true)
- public static IAsyncEnumerator<List<TSource>> Batch<TSource>(this IAsyncEnumerator<TSource> source, int maxItemsInBatch, long maxBatchWeight, Func<TSource, long> weightSelector, bool disposeSource = true)
- public static IAsyncEnumerator<TStandardCollection> Batch<TSource, TStandardCollection>(this IAsyncEnumerator<TSource> source, int maxItemsInBatch, long maxBatchWeight, Func<TSource, long> weightSelector, bool disposeSource = true)
- public static IAsyncEnumerator<TBatch> Batch<TSource, TBatch>(this IAsyncEnumerator<TSource> source, int? maxItemsInBatch, long maxBatchWeight, Func<TSource, long> weightSelector, Func<int?, TBatch> createBatch, Action<TBatch, TSource> addItem, bool disposeSource = true)
- public static IAsyncEnumerator<TResult> Cast<TResult>(this IAsyncEnumerator source, bool disposeSource = true)
- public static IAsyncEnumerator<TSource> DefaultIfEmpty<TSource>(this IAsyncEnumerator<TSource> source, bool disposeSource = true)
- public static IAsyncEnumerator<TSource> DefaultIfEmpty<TSource>(this IAsyncEnumerator<TSource> source, TSource defaultValue, bool disposeSource = true)
- public static Task<TSource> FirstAsync<TSource>(this IAsyncEnumerator<TSource> source, string exceptionMessage, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> FirstAsync<TSource>(this IAsyncEnumerator<TSource> source, Func<TSource, bool> predicate, string exceptionMessage, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerator<TSource> source, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerator<TSource> source, string noneExceptionMessage, string manyExceptionMessage, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerator<TSource> source, Func<TSource, bool> predicate, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> SingleAsync<TSource>(this IAsyncEnumerator<TSource> source, Func<TSource, bool> predicate, string noneExceptionMessage, string manyExceptionMessage, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> SingleOrDefaultAsync<TSource>(this IAsyncEnumerator<TSource> source, CancellationToken token = default, bool disposeSource = true)
- public static Task<TSource> SingleOrDefaultAsync<TSource>(this IAsyncEnumerator<TSource> source, Func<TSource, bool> predicate, CancellationToken token = default, bool disposeSource = true)
- public static IAsyncEnumerator<T> UnionAll<T>(this IAsyncEnumerator<T> first, IAsyncEnumerator<T> second, bool disposeSource = true)
- public static IAsyncEnumerator<T> UnionAll<T>(this IEnumerable<IAsyncEnumerator<T>> collections, bool disposeSource = true)