1 interface inheriting from IAsyncEnumerable
System.Linq.AsyncEnumerable (1)
17 implementations of IAsyncEnumerable
Aspire.Cli.Tests (1)
Aspire.Hosting (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Tests (5)
Microsoft.DotNet.XUnitAssert.Tests (1)
Microsoft.Extensions.AI.Tests (1)
System.Linq.AsyncEnumerable (1)
System.Text.Json (1)
2093 references to IAsyncEnumerable
aspire (26)
Aspire.Cli.Tests (15)
Aspire.Components.Common.TestUtilities (1)
Aspire.Dashboard (12)
Aspire.Dashboard.Components.Tests (10)
Aspire.Dashboard.Tests (12)
Aspire.Hosting (52)
Utils\PeriodicRestartAsyncEnumerable.cs (10)
16/// <param name="enumerableFactory">Factory method that takes the last iterrated value (if one exists) and a <see cref="CancellationToken"/> and returns a fresh <see cref="IAsyncEnumerable{T}"/> to enumerate over</param>
19/// <returns>An <see cref="IAsyncEnumerable{T}"/> of items returned by the inner iterables</returns>
20public static async IAsyncEnumerable<T> CreateAsync<T>(Func<T?, CancellationToken, Task<IAsyncEnumerable<T>>> enumerableFactory, TimeSpan restartInterval, [EnumeratorCancellation] CancellationToken cancellationToken) where T : struct
29var enumerable = await enumerableFactory(lastValue, cts.Token).ConfigureAwait(false);
72/// <param name="enumerableFactory">Factory method that takes the last iterrated value (if one exists) and a <see cref="CancellationToken"/> and returns a fresh <see cref="IAsyncEnumerable{T}"/> to enumerate over</param>
75/// <returns>An <see cref="IAsyncEnumerable{T}"/> of items returned by the inner iterables</returns>
76public static async IAsyncEnumerable<T> CreateAsync<T>(Func<T?, CancellationToken, Task<IAsyncEnumerable<T>>> enumerableFactory, TimeSpan restartInterval, [EnumeratorCancellation] CancellationToken cancellationToken) where T : class?
85var enumerable = await enumerableFactory(lastValue, cts.Token).ConfigureAwait(false);
Aspire.Hosting.Azure.AIFoundry (1)
Aspire.Hosting.Kafka.Tests (2)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.NodeJs.Tests (2)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (17)
Aspire.Hosting.Valkey.Tests (2)
Aspire.Playground.Tests (2)
CatalogDb (2)
CatalogModel (2)
FormatterWebSite (5)
GenerateDocumentationAndConfigFiles (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
Metrics (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Metrics.Legacy (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Http.Extensions.Tests (12)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results (12)
Microsoft.AspNetCore.Http.Results.Tests (18)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.Core.Test (34)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (8)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (7)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (33)
Microsoft.AspNetCore.SignalR.Client.Core (36)
HubConnection.cs (6)
670/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
672public virtual IAsyncEnumerable<TResult> StreamAsyncCore<TResult>(string methodName, object?[] args, CancellationToken cancellationToken = default)
675var stream = CastIAsyncEnumerable<TResult>(methodName, args, cts);
676var cancelableStream = AsyncEnumerableAdapters.MakeCancelableTypedAsyncEnumerable(stream, cts);
680private async IAsyncEnumerable<T> CastIAsyncEnumerable<T>(string methodName, object?[] args, CancellationTokenSource cts)
954private Task SendIAsyncEnumerableStreamItems<T>(ConnectionState connectionState, string streamId, IAsyncEnumerable<T> stream, CancellationTokenSource tokenSource)
HubConnectionExtensions.StreamAsync.cs (22)
24/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
27public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, CancellationToken cancellationToken = default)
41/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
44public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, CancellationToken cancellationToken = default)
59/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
62public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, CancellationToken cancellationToken = default)
78/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
81public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, CancellationToken cancellationToken = default)
98/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
101public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, CancellationToken cancellationToken = default)
119/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
122public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, CancellationToken cancellationToken = default)
141/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
144public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, CancellationToken cancellationToken = default)
164/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
167public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, CancellationToken cancellationToken = default)
188/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
191public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, CancellationToken cancellationToken = default)
213/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
216public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, CancellationToken cancellationToken = default)
239/// A <see cref="IAsyncEnumerable{TResult}"/> that represents the stream.
242public static IAsyncEnumerable<TResult> StreamAsync<TResult>(this HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, object? arg10, CancellationToken cancellationToken = default)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (22)
Microsoft.AspNetCore.SignalR.Client.Tests (17)
Microsoft.AspNetCore.SignalR.Core (8)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (27)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.CodeAnalysis.Analyzers (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.CodeAnalysis.AnalyzerUtilities (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.CodeAnalysis.BannedApiAnalyzers (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.CodeAnalysis.CodeStyle (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.EditorFeatures (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Microsoft.CodeAnalysis.Features (16)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (36)
Microsoft.CodeAnalysis.PublicApiAnalyzers (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.CodeAnalysis.Workspaces (41)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Microsoft.DotNet.Helix.Client (5)
Microsoft.DotNet.XUnitAssert.Tests (94)
AsyncCollectionAssertsTests.cs (93)
21 Assert.Throws<ArgumentNullException>("collection", () => Assert.All(default(IAsyncEnumerable<object>)!, _ => { }));
29 var items = new[] { 1, 1, 1, 1, 1, 1 }.ToAsyncEnumerable();
37 var items = new[] { 1, 1, 42, 2112, 1, 1 }.ToAsyncEnumerable();
73 await Assert.ThrowsAsync<ArgumentNullException>("collection", () => Assert.AllAsync(default(IAsyncEnumerable<object>)!, async _ => await Task.Yield()));
81 var items = new[] { 1, 1, 1, 1, 1, 1 }.ToAsyncEnumerable();
89 var items = new[] { 1, 1, 42, 2112, 1, 1 }.ToAsyncEnumerable();
111 var items = new[] { 1, 1, 2, 2, 1, 1 }.ToAsyncEnumerable();
125 var list = new List<int>().ToAsyncEnumerable();
135 var list = new List<int>().ToAsyncEnumerable();
157 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
168 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
196 var list = new List<int>().ToAsyncEnumerable();
206 var list = new List<int>().ToAsyncEnumerable();
228 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
247 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable();
283 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IAsyncEnumerable<int>)!));
289 var list = new List<object?> { 16, null, "Hi there" }.ToAsyncEnumerable();
297 var list = new List<int> { 42 }.ToAsyncEnumerable();
305 var list = new List<int> { 41, 43 }.ToAsyncEnumerable();
321 var list = new List<object?> { null, 16, "Hi there" }.ToAsyncEnumerable();
334 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IAsyncEnumerable<int>)!, comparer));
341 var list = new List<int> { 42 }.ToAsyncEnumerable();
359 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(default(IAsyncEnumerable<int>)!, item => true));
366 var list = new[] { "Hello", "world" }.ToAsyncEnumerable();
374 var list = new[] { "Hello", "world" }.ToAsyncEnumerable();
392 Assert.Throws<ArgumentNullException>("collection", () => Assert.Distinct(default(IAsyncEnumerable<int>)!));
399 var list = new List<object?> { 16, "Hi there", null }.ToAsyncEnumerable();
407 var list = new List<int> { 42, 42 }.ToAsyncEnumerable();
423 var list = new List<string?> { "a", null, "b", null, "c", "d" }.ToAsyncEnumerable();
439 var list = new string[] { "a", "b", "A" }.ToAsyncEnumerable();
448 var list = new string[] { "a", "b", "A" }.ToAsyncEnumerable();
467 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IAsyncEnumerable<int>)!));
473 var list = new List<object?> { 16, "Hi there" }.ToAsyncEnumerable();
481 var list = new List<int> { 42 }.ToAsyncEnumerable();
498 var list = new List<int>().ToAsyncEnumerable();
506 var list = new List<object?> { null, 16, "Hi there" }.ToAsyncEnumerable();
519 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IAsyncEnumerable<int>)!, comparer));
526 var list = new List<int> { 42 }.ToAsyncEnumerable();
544 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(default(IAsyncEnumerable<int>)!, item => true));
551 var list = new[] { "Hello", "world" }.ToAsyncEnumerable();
567 var list = new[] { "Hello", "world" }.ToAsyncEnumerable();
578 Assert.Throws<ArgumentNullException>("collection", () => Assert.Empty(default(IAsyncEnumerable<int>)!));
584 var list = new List<int>().ToAsyncEnumerable();
592 var list = new List<int> { 42 }.ToAsyncEnumerable();
623 var nullAsyncEnumerable = default(IAsyncEnumerable<int>);
633 var actual = default(IAsyncEnumerable<int>);
657 var actual = new int[0].ToAsyncEnumerable();
673 validateError(() => Assert.Equal(default(IAsyncEnumerable<int>), actual));
683 var actual = expected.ToAsyncEnumerable();
739 var actual = actualArray is null ? null : new List<int>(actualArray).ToAsyncEnumerable();
784 var actual = expected.ToAsyncEnumerable();
813 var actual = new int[] { 0, 0, 0, 0, 0 }.ToAsyncEnumerable();
907 var actual = new[] { new EquatableObject { Char = 'a' } }.ToAsyncEnumerable();
917 var actual = new[] { new EquatableObject { Char = 'b' } }.ToAsyncEnumerable();
957 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }).ToAsyncEnumerable();
986 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }).ToAsyncEnumerable();
997 var actual = new List<EnumerableItem> { new(0), new(2) }.ToAsyncEnumerable();
1018 var actual = new[] { 1, 3 }.ToAsyncEnumerable();
1051 var list = new List<int>().ToAsyncEnumerable();
1065 var list = new List<int> { 42 }.ToAsyncEnumerable();
1089 var nullAsyncEnumerable = default(IAsyncEnumerable<int>);
1111 var actual = default(IAsyncEnumerable<int>);
1120 var actual = new int[0].ToAsyncEnumerable();
1123 Assert.NotEqual(default(IAsyncEnumerable<int>), actual);
1133 var actual = new List<int>(expected).ToAsyncEnumerable();
1160 var actual = new List<int>(new[] { 1, 2, 3, 4, 0, 6, 7, 8, 9, 10 }).ToAsyncEnumerable();
1173 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }).ToAsyncEnumerable();
1183 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }).ToAsyncEnumerable();
1224 var actual = new[] { 1, 2 }.ToAsyncEnumerable();
1266 var actual = new[] { new EquatableObject { Char = 'a' } }.ToAsyncEnumerable();
1293 var actual = new[] { new EquatableObject { Char = 'b' } }.ToAsyncEnumerable();
1314 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }).ToAsyncEnumerable();
1324 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }).ToAsyncEnumerable();
1351 var actual = new[] { 1, 2 }.ToAsyncEnumerable();
1384 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!));
1390 var collection = new object[0].ToAsyncEnumerable();
1401 var collection = new[] { "Hello" }.ToAsyncEnumerable();
1411 var collection = new[] { "Hello", "World" }.ToAsyncEnumerable();
1426 var collection = new[] { 1, 2, 3, 4, 5, 6, 7 }.ToAsyncEnumerable();
1441 var collection = "H".ToAsyncEnumerable();
1451 var collection = "Hello".ToAsyncEnumerable();
1469 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!, _ => true));
1476 var collection = new[] { "Hello", "World" }.ToAsyncEnumerable();
1486 var collection = new[] { "Hello", "World" }.ToAsyncEnumerable();
1502 var collection = new[] { "Hello", "World" }.ToAsyncEnumerable();
1519 var collection = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 4 }.ToAsyncEnumerable();
1536 var collection = "H".ToAsyncEnumerable();
1546 var collection = "H".ToAsyncEnumerable();
1564 public SpyEnumerator(IAsyncEnumerable<T> enumerable)
Microsoft.Extensions.AI (15)
Microsoft.Extensions.AI.Abstractions (15)
Microsoft.Extensions.AI.Abstractions.Tests (13)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Evaluation (7)
Microsoft.Extensions.AI.Evaluation.Reporting (9)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Integration.Tests (10)
Microsoft.Extensions.AI.Ollama (1)
Microsoft.Extensions.AI.Ollama.Tests (1)
Microsoft.Extensions.AI.OpenAI (11)
src\Shared\ServerSentEvents\SseFormatter.cs (3)
30public static Task WriteAsync(IAsyncEnumerable<SseItem<string>> source, Stream destination, CancellationToken cancellationToken = default)
54public static Task WriteAsync<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken = default)
74private static async Task WriteAsyncCore<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken)
Microsoft.Extensions.AI.Tests (33)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.GenAI.LLaMA (4)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.GenAI.Phi (4)
Microsoft.VisualStudio.LanguageServices (1)
mscorlib (1)
netstandard (1)
Replay (1)
Roslyn.Diagnostics.Analyzers (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Roslyn.Diagnostics.CSharp.Analyzers (1)
Shared (4)
ServerSentEvents\SseFormatter.cs (3)
30public static Task WriteAsync(IAsyncEnumerable<SseItem<string>> source, Stream destination, CancellationToken cancellationToken = default)
54public static Task WriteAsync<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken = default)
74private static async Task WriteAsyncCore<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken)
SignalRSamples (1)
Stress.ApiService (1)
System.Linq.AsyncEnumerable (773)
System\Linq\AggregateAsync.cs (16)
15/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
23this IAsyncEnumerable<TSource> source,
33IAsyncEnumerable<TSource> source,
56/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
64this IAsyncEnumerable<TSource> source,
74IAsyncEnumerable<TSource> source,
98/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
106this IAsyncEnumerable<TSource> source,
135/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
143this IAsyncEnumerable<TSource> source, TAccumulate seed,
153IAsyncEnumerable<TSource> source, TAccumulate seed,
176/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
186this IAsyncEnumerable<TSource> source,
223/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
233this IAsyncEnumerable<TSource> source,
246IAsyncEnumerable<TSource> source,
System\Linq\AggregateBy.cs (20)
20/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
33public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
34this IAsyncEnumerable<TSource> source,
49static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
50IAsyncEnumerable<TSource> source,
91/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
104public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
105this IAsyncEnumerable<TSource> source,
120static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
121IAsyncEnumerable<TSource> source,
157/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
171public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
172this IAsyncEnumerable<TSource> source,
187static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
188IAsyncEnumerable<TSource> source,
229/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to aggregate over.</param>
243public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
244this IAsyncEnumerable<TSource> source,
259static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
260IAsyncEnumerable<TSource> source,
System\Linq\AverageAsync.cs (10)
21this IAsyncEnumerable<int> source,
56this IAsyncEnumerable<long> source,
90this IAsyncEnumerable<float> source, CancellationToken cancellationToken = default)
123this IAsyncEnumerable<double> source, CancellationToken cancellationToken = default)
156this IAsyncEnumerable<decimal> source, CancellationToken cancellationToken = default)
190this IAsyncEnumerable<int?> source, CancellationToken cancellationToken = default)
222this IAsyncEnumerable<long?> source, CancellationToken cancellationToken = default)
253this IAsyncEnumerable<float?> source, CancellationToken cancellationToken = default)
284this IAsyncEnumerable<double?> source, CancellationToken cancellationToken = default)
315this IAsyncEnumerable<decimal?> source, CancellationToken cancellationToken = default)
System\Linq\CountAsync.cs (10)
21this IAsyncEnumerable<TSource> source,
29IAsyncEnumerable<TSource> source,
53this IAsyncEnumerable<TSource> source,
88this IAsyncEnumerable<TSource> source,
98IAsyncEnumerable<TSource> source,
122this IAsyncEnumerable<TSource> source,
130IAsyncEnumerable<TSource> source,
153this IAsyncEnumerable<TSource> source,
187this IAsyncEnumerable<TSource> source,
197IAsyncEnumerable<TSource> source,
System\Linq\CountBy.cs (8)
23public static IAsyncEnumerable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(
24this IAsyncEnumerable<TSource> source,
35static async IAsyncEnumerable<KeyValuePair<TKey, int>> Impl(
36IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? keyComparer, [EnumeratorCancellation] CancellationToken cancellationToken)
74public static IAsyncEnumerable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(
75this IAsyncEnumerable<TSource> source,
86static async IAsyncEnumerable<KeyValuePair<TKey, int>> Impl(
87IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<TKey>> keySelector, IEqualityComparer<TKey>? keyComparer, [EnumeratorCancellation] CancellationToken cancellationToken)
System\Linq\DistinctBy.cs (12)
19/// <returns>An <see cref="IAsyncEnumerable{T}" /> that contains distinct elements from the source sequence.</returns>
23/// <para>The <see cref="DistinctBy{TSource, TKey}(IAsyncEnumerable{TSource}, Func{TSource, TKey}, IEqualityComparer{TKey}?)" /> method returns an unordered sequence that contains no duplicate values. If <paramref name="comparer" /> is <see langword="null" />, the default equality comparer, <see cref="EqualityComparer{T}.Default" />, is used to compare values.</para>
27public static IAsyncEnumerable<TSource> DistinctBy<TSource, TKey>(
28this IAsyncEnumerable<TSource> source,
39static async IAsyncEnumerable<TSource> Impl(
40IAsyncEnumerable<TSource> source,
69/// <returns>An <see cref="IAsyncEnumerable{T}" /> that contains distinct elements from the source sequence.</returns>
73/// <para>The <see cref="DistinctBy{TSource, TKey}(IAsyncEnumerable{TSource}, Func{TSource, CancellationToken, ValueTask{TKey}}, IEqualityComparer{TKey}?)" /> method returns an unordered sequence that contains no duplicate values. If <paramref name="comparer" /> is <see langword="null" />, the default equality comparer, <see cref="EqualityComparer{T}.Default" />, is used to compare values.</para>
77public static IAsyncEnumerable<TSource> DistinctBy<TSource, TKey>(
78this IAsyncEnumerable<TSource> source,
89static async IAsyncEnumerable<TSource> Impl(
90IAsyncEnumerable<TSource> source,
System\Linq\ExceptBy.cs (16)
18/// <param name="first">An <see cref="IAsyncEnumerable{TSource}" /> whose keys that are not also in <paramref name="second"/> will be returned.</param>
19/// <param name="second">An <see cref="IAsyncEnumerable{TKey}" /> whose keys that also occur in the first sequence will cause those elements to be removed from the returned sequence.</param>
26public static IAsyncEnumerable<TSource> ExceptBy<TSource, TKey>(
27this IAsyncEnumerable<TSource> first,
28IAsyncEnumerable<TKey> second,
40static async IAsyncEnumerable<TSource> Impl(
41IAsyncEnumerable<TSource> first,
42IAsyncEnumerable<TKey> second,
78/// <param name="first">An <see cref="IAsyncEnumerable{TSource}" /> whose keys that are not also in <paramref name="second"/> will be returned.</param>
79/// <param name="second">An <see cref="IAsyncEnumerable{TKey}" /> whose keys that also occur in the first sequence will cause those elements to be removed from the returned sequence.</param>
86public static IAsyncEnumerable<TSource> ExceptBy<TSource, TKey>(
87this IAsyncEnumerable<TSource> first,
88IAsyncEnumerable<TKey> second,
100static async IAsyncEnumerable<TSource> Impl(
101IAsyncEnumerable<TSource> first,
102IAsyncEnumerable<TKey> second,
System\Linq\FirstAsync.cs (22)
15/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to return the first element of.</param>
21this IAsyncEnumerable<TSource> source,
29IAsyncEnumerable<TSource> source,
45/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
56this IAsyncEnumerable<TSource> source,
84/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
95this IAsyncEnumerable<TSource> source,
105IAsyncEnumerable<TSource> source,
124/// <param name="source">The <see cref="IAsyncEnumerable{T}" /> to return the first element of.</param>
129this IAsyncEnumerable<TSource> source,
135/// <param name="source">The <see cref="IAsyncEnumerable{T}" /> to return the first element of.</param>
141this IAsyncEnumerable<TSource> source,
150IAsyncEnumerable<TSource> source,
162/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
172this IAsyncEnumerable<TSource> source,
179/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
189this IAsyncEnumerable<TSource> source,
196/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return an element from.</param>
204this IAsyncEnumerable<TSource> source,
233/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return an element from.</param>
241this IAsyncEnumerable<TSource> source,
252IAsyncEnumerable<TSource> source,
System\Linq\GroupBy.cs (44)
18/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
22/// An <see cref="IAsyncEnumerable{IGrouping}"/> where each <see cref="IGrouping{TKey, TElement}"/>
27public static IAsyncEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>( // satisfies the C# query-expression pattern
28this IAsyncEnumerable<TSource> source,
39static async IAsyncEnumerable<IGrouping<TKey, TSource>> Impl(
40IAsyncEnumerable<TSource> source,
55/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
59/// An <see cref="IAsyncEnumerable{IGrouping}"/> where each <see cref="IGrouping{TKey, TElement}"/>
64public static IAsyncEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(
65this IAsyncEnumerable<TSource> source,
76static async IAsyncEnumerable<IGrouping<TKey, TSource>> Impl(
77IAsyncEnumerable<TSource> source,
97/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
102/// An <see cref="IAsyncEnumerable{IGrouping}"/> where each <see cref="IGrouping{TKey, TElement}"/>
108public static IAsyncEnumerable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>( // satisfies the C# query-expression pattern
109this IAsyncEnumerable<TSource> source,
122static async IAsyncEnumerable<IGrouping<TKey, TElement>> Impl(
123IAsyncEnumerable<TSource> source,
144/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
149/// An <see cref="IAsyncEnumerable{IGrouping}"/> where each <see cref="IGrouping{TKey, TElement}"/>
155public static IAsyncEnumerable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(
156this IAsyncEnumerable<TSource> source,
169static async IAsyncEnumerable<IGrouping<TKey, TElement>> Impl(
170IAsyncEnumerable<TSource> source,
190/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
201public static IAsyncEnumerable<TResult> GroupBy<TSource, TKey, TResult>(
202this IAsyncEnumerable<TSource> source,
215static async IAsyncEnumerable<TResult> Impl(
216IAsyncEnumerable<TSource> source,
239/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
250public static IAsyncEnumerable<TResult> GroupBy<TSource, TKey, TResult>(
251this IAsyncEnumerable<TSource> source,
264static async IAsyncEnumerable<TResult> Impl(
265IAsyncEnumerable<TSource> source,
291/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
301public static IAsyncEnumerable<TResult> GroupBy<TSource, TKey, TElement, TResult>(
302this IAsyncEnumerable<TSource> source,
317static async IAsyncEnumerable<TResult> Impl(
318IAsyncEnumerable<TSource> source,
345/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> of elements to group.</param>
355public static IAsyncEnumerable<TResult> GroupBy<TSource, TKey, TElement, TResult>(
356this IAsyncEnumerable<TSource> source,
371static async IAsyncEnumerable<TResult> Impl(
372IAsyncEnumerable<TSource> source,
System\Linq\GroupJoin.cs (14)
28/// An <see cref="IAsyncEnumerable{T}"/> that contains elements of type <typeparamref name="TResult"/>
36public static IAsyncEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>( // satisfies the C# query-expression pattern
37this IAsyncEnumerable<TOuter> outer,
38IAsyncEnumerable<TInner> inner,
54static async IAsyncEnumerable<TResult> Impl(
55IAsyncEnumerable<TOuter> outer,
56IAsyncEnumerable<TInner> inner,
93/// An <see cref="IAsyncEnumerable{T}"/> that contains elements of type <typeparamref name="TResult"/>
101public static IAsyncEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(
102this IAsyncEnumerable<TOuter> outer,
103IAsyncEnumerable<TInner> inner,
119static async IAsyncEnumerable<TResult> Impl(
120IAsyncEnumerable<TOuter> outer,
121IAsyncEnumerable<TInner> inner,
System\Linq\IntersectBy.cs (16)
16/// <param name="first">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements that also appear in <paramref name="second" /> will be returned.</param>
17/// <param name="second">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements that also appear in the first sequence will be returned.</param>
31public static IAsyncEnumerable<TSource> IntersectBy<TSource, TKey>(
32this IAsyncEnumerable<TSource> first,
33IAsyncEnumerable<TKey> second,
45static async IAsyncEnumerable<TSource> Impl(
46IAsyncEnumerable<TSource> first,
47IAsyncEnumerable<TKey> second,
81/// <param name="first">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements that also appear in <paramref name="second" /> will be returned.</param>
82/// <param name="second">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements that also appear in the first sequence will be returned.</param>
96public static IAsyncEnumerable<TSource> IntersectBy<TSource, TKey>(
97this IAsyncEnumerable<TSource> first,
98IAsyncEnumerable<TKey> second,
110static async IAsyncEnumerable<TSource> Impl(
111IAsyncEnumerable<TSource> first,
112IAsyncEnumerable<TKey> second,
System\Linq\Join.cs (14)
25/// An <see cref="IAsyncEnumerable{T}"/> that has elements of type <typeparamref name="TResult"/>
33public static IAsyncEnumerable<TResult> Join<TOuter, TInner, TKey, TResult>( // satisfies the C# query-expression pattern
34this IAsyncEnumerable<TOuter> outer,
35IAsyncEnumerable<TInner> inner,
51static async IAsyncEnumerable<TResult> Impl(
52IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner,
98/// An <see cref="IAsyncEnumerable{T}"/> that has elements of type <typeparamref name="TResult"/>
106public static IAsyncEnumerable<TResult> Join<TOuter, TInner, TKey, TResult>(
107this IAsyncEnumerable<TOuter> outer,
108IAsyncEnumerable<TInner> inner,
124static async IAsyncEnumerable<TResult> Impl(
125IAsyncEnumerable<TOuter> outer,
126IAsyncEnumerable<TInner> inner,
System\Linq\LastAsync.cs (26)
14/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return the last element of.</param>
20this IAsyncEnumerable<TSource> source,
28IAsyncEnumerable<TSource> source,
51/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
62this IAsyncEnumerable<TSource> source,
72IAsyncEnumerable<TSource> source,
105/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
116this IAsyncEnumerable<TSource> source,
126IAsyncEnumerable<TSource> source,
159/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return an element from.</param>
163/// otherwise, the last element in the <see cref="IAsyncEnumerable{T}"/>.
167this IAsyncEnumerable<TSource> source,
173/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return the last element of.</param>
176/// <returns><paramref name="defaultValue" /> if the source sequence is empty; otherwise, the last element in the <see cref="IAsyncEnumerable{T}" />.</returns>
179this IAsyncEnumerable<TSource> source,
188IAsyncEnumerable<TSource> source, TSource defaultValue, CancellationToken cancellationToken)
208/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return an element from.</param>
215this IAsyncEnumerable<TSource> source,
222/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return an element from.</param>
229this IAsyncEnumerable<TSource> source,
236/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return an element from.</param>
244this IAsyncEnumerable<TSource> source,
255IAsyncEnumerable<TSource> source,
289/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return an element from.</param>
297this IAsyncEnumerable<TSource> source,
308IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask<bool>> predicate, TSource defaultValue, CancellationToken cancellationToken)
System\Linq\LeftJoin.cs (13)
24/// <returns>An <see cref="IAsyncEnumerable{T}" /> that has elements of type <typeparamref name="TResult" /> that are obtained by performing a left outer join on two sequences.</returns>
30public static IAsyncEnumerable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(
31this IAsyncEnumerable<TOuter> outer,
32IAsyncEnumerable<TInner> inner,
48static async IAsyncEnumerable<TResult> Impl(
49IAsyncEnumerable<TOuter> outer, IAsyncEnumerable<TInner> inner,
101public static IAsyncEnumerable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(
102this IAsyncEnumerable<TOuter> outer,
103IAsyncEnumerable<TInner> inner,
119static async IAsyncEnumerable<TResult> Impl(
120IAsyncEnumerable<TOuter> outer,
121IAsyncEnumerable<TInner> inner,
System\Linq\MaxAsync.cs (11)
21/// <para>If type <typeparamref name="TSource" /> implements <see cref="IComparable{T}" />, the <see cref="MaxAsync{TSource}(IAsyncEnumerable{TSource}, IComparer{TSource}?, CancellationToken)" /> method uses that implementation to compare values. Otherwise, if type <typeparamref name="TSource" /> implements <see cref="IComparable" />, that implementation is used to compare values.</para>
25this IAsyncEnumerable<TSource> source,
38return (ValueTask<TSource?>)(object)MaxAsync((IAsyncEnumerable<float>)(object)source, cancellationToken);
43return (ValueTask<TSource?>)(object)MaxAsync((IAsyncEnumerable<double>)(object)source, cancellationToken);
48return (ValueTask<TSource?>)(object)MaxAsync((IAsyncEnumerable<float?>)(object)source, cancellationToken);
53return (ValueTask<TSource?>)(object)MaxAsync((IAsyncEnumerable<double?>)(object)source, cancellationToken);
60IAsyncEnumerable<TSource> source,
130this IAsyncEnumerable<float> source,
171this IAsyncEnumerable<double> source,
211private static async ValueTask<float?> MaxAsync(IAsyncEnumerable<float?> source, CancellationToken cancellationToken)
234private static async ValueTask<double?> MaxAsync(IAsyncEnumerable<double?> source, CancellationToken cancellationToken)
System\Linq\MinAsync.cs (11)
21/// <para>If type <typeparamref name="TSource" /> implements <see cref="IComparable{T}" />, the <see cref="MinAsync{TSource}(IAsyncEnumerable{TSource}, IComparer{TSource}?, CancellationToken)" /> method uses that implementation to compare values. Otherwise, if type <typeparamref name="TSource" /> implements <see cref="IComparable" />, that implementation is used to compare values.</para>
25this IAsyncEnumerable<TSource> source,
38return (ValueTask<TSource?>)(object)MinAsync((IAsyncEnumerable<float>)(object)source, cancellationToken);
43return (ValueTask<TSource?>)(object)MinAsync((IAsyncEnumerable<double>)(object)source, cancellationToken);
48return (ValueTask<TSource?>)(object)MinAsync((IAsyncEnumerable<float?>)(object)source, cancellationToken);
53return (ValueTask<TSource?>)(object)MinAsync((IAsyncEnumerable<double?>)(object)source, cancellationToken);
59static async ValueTask<TSource?> Impl(IAsyncEnumerable<TSource> source, IComparer<TSource> comparer, CancellationToken cancellationToken)
127IAsyncEnumerable<float> source,
172IAsyncEnumerable<double> source,
217IAsyncEnumerable<float?> source,
242IAsyncEnumerable<double?> source,
System\Linq\OrderBy.cs (19)
17/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted.</returns>
20this IAsyncEnumerable<T> source,
30/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted according to a key.</returns>
34this IAsyncEnumerable<TSource> source,
52/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted according to a key.</returns>
56this IAsyncEnumerable<TSource> source,
72/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted in descending order.</returns>
75this IAsyncEnumerable<T> source,
85/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted in descending order according to a key.</returns>
89this IAsyncEnumerable<TSource> source,
107/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted in descending order according to a key.</returns>
111this IAsyncEnumerable<TSource> source,
129/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted according to a key.</returns>
148/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted according to a key.</returns>
167/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted in descending order according to a key.</returns>
186/// <returns>An <see cref="IAsyncEnumerable{TElement}"/> whose elements are sorted in descending order according to a key.</returns>
201internal readonly IAsyncEnumerable<TElement> _source;
203protected OrderedIterator(IAsyncEnumerable<TElement> source) => _source = source;
226internal OrderedIterator(IAsyncEnumerable<TElement> source, object keySelector, IComparer<TKey>? comparer, bool descending, OrderedIterator<TElement>? parent) :
System\Linq\RightJoin.cs (14)
24/// <returns>An <see cref="IAsyncEnumerable{T}" /> that has elements of type <typeparamref name="TResult" /> that are obtained by performing a right outer join on two sequences.</returns>
30public static IAsyncEnumerable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(
31this IAsyncEnumerable<TOuter> outer,
32IAsyncEnumerable<TInner> inner,
48static async IAsyncEnumerable<TResult> Impl(
49IAsyncEnumerable<TOuter> outer,
50IAsyncEnumerable<TInner> inner,
96/// <returns>An <see cref="IAsyncEnumerable{T}" /> that has elements of type <typeparamref name="TResult" /> that are obtained by performing a right outer join on two sequences.</returns>
102public static IAsyncEnumerable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(
103this IAsyncEnumerable<TOuter> outer,
104IAsyncEnumerable<TInner> inner,
120static async IAsyncEnumerable<TResult> Impl(
121IAsyncEnumerable<TOuter> outer,
122IAsyncEnumerable<TInner> inner,
System\Linq\Select.cs (20)
19/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
24public static IAsyncEnumerable<TResult> Select<TSource, TResult>( // satisfies the C# query-expression pattern
25this IAsyncEnumerable<TSource> source,
35static async IAsyncEnumerable<TResult> Impl(
36IAsyncEnumerable<TSource> source,
53/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
58public static IAsyncEnumerable<TResult> Select<TSource, TResult>(
59this IAsyncEnumerable<TSource> source,
69static async IAsyncEnumerable<TResult> Impl(
70IAsyncEnumerable<TSource> source,
90/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
95public static IAsyncEnumerable<TResult> Select<TSource, TResult>(
96this IAsyncEnumerable<TSource> source,
106static async IAsyncEnumerable<TResult> Impl(
107IAsyncEnumerable<TSource> source,
128/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
133public static IAsyncEnumerable<TResult> Select<TSource, TResult>(
134this IAsyncEnumerable<TSource> source,
144static async IAsyncEnumerable<TResult> Impl(
145IAsyncEnumerable<TSource> source,
System\Linq\SelectMany.cs (93)
15/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence.
22/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
27public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(
28this IAsyncEnumerable<TSource> source,
38async static IAsyncEnumerable<TResult> Impl(
39IAsyncEnumerable<TSource> source,
55/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence.
62/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
67public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(
68this IAsyncEnumerable<TSource> source,
78async static IAsyncEnumerable<TResult> Impl(
79IAsyncEnumerable<TSource> source,
94/// Projects each element of a sequence to an <see cref="IAsyncEnumerable{T}"/> and
95/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence.
102/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
107public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(
108this IAsyncEnumerable<TSource> source,
109Func<TSource, IAsyncEnumerable<TResult>> selector)
118async static IAsyncEnumerable<TResult> Impl(
119IAsyncEnumerable<TSource> source,
120Func<TSource, IAsyncEnumerable<TResult>> selector,
135/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence.
143/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
148public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(
149this IAsyncEnumerable<TSource> source,
159async static IAsyncEnumerable<TResult> Impl(
160IAsyncEnumerable<TSource> source,
177/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence.
185/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
190public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(
191this IAsyncEnumerable<TSource> source,
201async static IAsyncEnumerable<TResult> Impl(
202IAsyncEnumerable<TSource> source,
218/// Projects each element of a sequence to an <see cref="IAsyncEnumerable{T}"/> and
219/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence.
227/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
232public static IAsyncEnumerable<TResult> SelectMany<TSource, TResult>(
233this IAsyncEnumerable<TSource> source,
234Func<TSource, int, IAsyncEnumerable<TResult>> selector)
243async static IAsyncEnumerable<TResult> Impl(
244IAsyncEnumerable<TSource> source,
245Func<TSource, int, IAsyncEnumerable<TResult>> selector,
261/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
272/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
280public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(
281this IAsyncEnumerable<TSource> source,
293async static IAsyncEnumerable<TResult> Impl(
294IAsyncEnumerable<TSource> source,
311/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
322/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
330public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(
331this IAsyncEnumerable<TSource> source,
343async static IAsyncEnumerable<TResult> Impl(
344IAsyncEnumerable<TSource> source,
360/// Projects each element of a sequence to an <see cref="IAsyncEnumerable{T}"/>,
361/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
372/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
380public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>( // satisfies the C# query-expression pattern
381this IAsyncEnumerable<TSource> source,
382Func<TSource, IAsyncEnumerable<TCollection>> collectionSelector,
393async static IAsyncEnumerable<TResult> Impl(
394IAsyncEnumerable<TSource> source,
395Func<TSource, IAsyncEnumerable<TCollection>> collectionSelector,
410/// Projects each element of a sequence to an <see cref="IAsyncEnumerable{T}"/>,
411/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
422/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
430public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(
431this IAsyncEnumerable<TSource> source,
432Func<TSource, IAsyncEnumerable<TCollection>> collectionSelector,
443async static IAsyncEnumerable<TResult> Impl(
444IAsyncEnumerable<TSource> source,
445Func<TSource, IAsyncEnumerable<TCollection>> collectionSelector,
461/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
471/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
479public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(
480this IAsyncEnumerable<TSource> source,
492static async IAsyncEnumerable<TResult> Impl(
493IAsyncEnumerable<TSource> source,
511/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
521/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
529public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(
530this IAsyncEnumerable<TSource> source,
542static async IAsyncEnumerable<TResult> Impl(
543IAsyncEnumerable<TSource> source,
560/// Projects each element of a sequence to an <see cref="IAsyncEnumerable{T}"/>,
561/// flattens the resulting sequences into one <see cref="IAsyncEnumerable{T}"/> sequence,
571/// An <see cref="IAsyncEnumerable{T}"/> whose elements are the result of
579public static IAsyncEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(
580this IAsyncEnumerable<TSource> source,
581Func<TSource, int, IAsyncEnumerable<TCollection>> collectionSelector,
592static async IAsyncEnumerable<TResult> Impl(
593IAsyncEnumerable<TSource> source,
594Func<TSource, int, IAsyncEnumerable<TCollection>> collectionSelector,
System\Linq\SingleAsync.cs (24)
17/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return the single element of.</param>
24this IAsyncEnumerable<TSource> source,
32IAsyncEnumerable<TSource> source, CancellationToken cancellationToken)
56/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return the single element of.</param>
66this IAsyncEnumerable<TSource> source,
76IAsyncEnumerable<TSource> source,
109/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return the single element of.</param>
119this IAsyncEnumerable<TSource> source,
129IAsyncEnumerable<TSource> source,
162/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to return the single element of.</param>
171this IAsyncEnumerable<TSource> source,
177/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return the single element of.</param>
184this IAsyncEnumerable<TSource> source,
193IAsyncEnumerable<TSource> source,
220/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return the single element of.</param>
231this IAsyncEnumerable<TSource> source,
242/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return the single element of.</param>
253this IAsyncEnumerable<TSource> source,
260/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return a single element from.</param>
269this IAsyncEnumerable<TSource> source,
280IAsyncEnumerable<TSource> source,
310/// <param name="source">An <see cref="IAsyncEnumerable{T}" /> to return a single element from.</param>
319this IAsyncEnumerable<TSource> source,
330IAsyncEnumerable<TSource> source,
System\Linq\SumAsync.cs (10)
20this IAsyncEnumerable<int> source,
46this IAsyncEnumerable<long> source,
71this IAsyncEnumerable<float> source,
96this IAsyncEnumerable<double> source,
121this IAsyncEnumerable<decimal> source,
147this IAsyncEnumerable<int?> source,
176this IAsyncEnumerable<long?> source,
204this IAsyncEnumerable<float?> source,
232this IAsyncEnumerable<double?> source,
260this IAsyncEnumerable<decimal?> source,
System\Linq\TakeWhile.cs (20)
18/// An <see cref="IAsyncEnumerable{T}"/> that contains the elements from the
23public static IAsyncEnumerable<TSource> TakeWhile<TSource>(
24this IAsyncEnumerable<TSource> source,
34static async IAsyncEnumerable<TSource> Impl(
35IAsyncEnumerable<TSource> source, Func<TSource, bool> predicate,
55/// An <see cref="IAsyncEnumerable{T}"/> that contains the elements from the
60public static IAsyncEnumerable<TSource> TakeWhile<TSource>(
61this IAsyncEnumerable<TSource> source,
71static async IAsyncEnumerable<TSource> Impl(
72IAsyncEnumerable<TSource> source,
96/// An <see cref="IAsyncEnumerable{T}"/> that contains the elements from the
101public static IAsyncEnumerable<TSource> TakeWhile<TSource>(
102this IAsyncEnumerable<TSource> source,
112static async IAsyncEnumerable<TSource> Impl(
113IAsyncEnumerable<TSource> source,
138/// An <see cref="IAsyncEnumerable{T}"/> that contains the elements from the
143public static IAsyncEnumerable<TSource> TakeWhile<TSource>(
144this IAsyncEnumerable<TSource> source,
154static async IAsyncEnumerable<TSource> Impl(
155IAsyncEnumerable<TSource> source,
System\Linq\ToDictionaryAsync.cs (20)
14/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IAsyncEnumerable{T}"/> according to specified key comparer.
18/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param>
25this IAsyncEnumerable<KeyValuePair<TKey, TValue>> source,
48/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IAsyncEnumerable{T}"/> according to specified key comparer.
52/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param>
59this IAsyncEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer<TKey>? comparer = null, CancellationToken cancellationToken = default) where TKey : notnull =>
63/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/>
68/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param>
77this IAsyncEnumerable<TSource> source,
102/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/>
107/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param>
116this IAsyncEnumerable<TSource> source,
127IAsyncEnumerable<TSource> source,
142/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/>"/>
148/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param>
159this IAsyncEnumerable<TSource> source,
188/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/>"/>
194/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param>
205this IAsyncEnumerable<TSource> source,
218IAsyncEnumerable<TSource> source,
System\Linq\ToLookupAsync.cs (17)
16/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
21/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
29this IAsyncEnumerable<TSource> source,
64/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
69/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
77this IAsyncEnumerable<TSource> source,
88IAsyncEnumerable<TSource> source,
113/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
119/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
128this IAsyncEnumerable<TSource> source,
166/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
172/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
181this IAsyncEnumerable<TSource> source,
194IAsyncEnumerable<TSource> source,
281IAsyncEnumerable<TElement> source,
303IAsyncEnumerable<TElement> source,
425internal async IAsyncEnumerable<TResult> ApplyResultSelector<TResult>(
System\Linq\UnionBy.cs (18)
16/// <param name="first">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements form the first set for the union.</param>
17/// <param name="second">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements form the second set for the union.</param>
20/// <returns>An <see cref="IAsyncEnumerable{T}" /> that contains the elements from both input sequences, excluding duplicates.</returns>
23public static IAsyncEnumerable<TSource> UnionBy<TSource, TKey>(
24this IAsyncEnumerable<TSource> first,
25IAsyncEnumerable<TSource> second,
37static async IAsyncEnumerable<TSource> Impl(
38IAsyncEnumerable<TSource> first,
39IAsyncEnumerable<TSource> second,
67/// <param name="first">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements form the first set for the union.</param>
68/// <param name="second">An <see cref="IAsyncEnumerable{T}" /> whose distinct elements form the second set for the union.</param>
71/// <returns>An <see cref="IAsyncEnumerable{T}" /> that contains the elements from both input sequences, excluding duplicates.</returns>
74public static IAsyncEnumerable<TSource> UnionBy<TSource, TKey>(
75this IAsyncEnumerable<TSource> first,
76IAsyncEnumerable<TSource> second,
88static async IAsyncEnumerable<TSource> Impl(
89IAsyncEnumerable<TSource> first,
90IAsyncEnumerable<TSource> second,
System\Linq\Zip.cs (28)
23/// <returns>An <see cref="IAsyncEnumerable{T}"/> that contains merged elements of two input sequences.</returns>
27public static IAsyncEnumerable<TResult> Zip<TFirst, TSecond, TResult>(
28this IAsyncEnumerable<TFirst> first,
29IAsyncEnumerable<TSecond> second,
40static async IAsyncEnumerable<TResult> Impl(
41IAsyncEnumerable<TFirst> first,
42IAsyncEnumerable<TSecond> second,
67/// <returns>An <see cref="IAsyncEnumerable{T}"/> that contains merged elements of two input sequences.</returns>
71public static IAsyncEnumerable<TResult> Zip<TFirst, TSecond, TResult>(
72this IAsyncEnumerable<TFirst> first,
73IAsyncEnumerable<TSecond> second,
84static async IAsyncEnumerable<TResult> Impl(
85IAsyncEnumerable<TFirst> first,
86IAsyncEnumerable<TSecond> second,
109public static IAsyncEnumerable<(TFirst First, TSecond Second)> Zip<TFirst, TSecond>(
110this IAsyncEnumerable<TFirst> first,
111IAsyncEnumerable<TSecond> second)
120static async IAsyncEnumerable<(TFirst First, TSecond Second)> Impl(
121IAsyncEnumerable<TFirst> first,
122IAsyncEnumerable<TSecond> second,
147public static IAsyncEnumerable<(TFirst First, TSecond Second, TThird Third)> Zip<TFirst, TSecond, TThird>(
148this IAsyncEnumerable<TFirst> first,
149IAsyncEnumerable<TSecond> second,
150IAsyncEnumerable<TThird> third)
160static async IAsyncEnumerable<(TFirst First, TSecond Second, TThird)> Impl(
161IAsyncEnumerable<TFirst> first, IAsyncEnumerable<TSecond> second, IAsyncEnumerable<TThird> third, [EnumeratorCancellation] CancellationToken cancellationToken)
System.Net.Http.Json (23)
System.Net.ServerSentEvents (4)
System\Net\ServerSentEvents\SseFormatter.cs (3)
27public static Task WriteAsync(IAsyncEnumerable<SseItem<string>> source, Stream destination, CancellationToken cancellationToken = default)
51public static Task WriteAsync<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken = default)
71private static async Task WriteAsyncCore<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken)
System.Private.CoreLib (22)
System.Runtime (1)
System.Text.Json (21)
System.Threading.Channels (2)
System.Threading.Tasks.Dataflow (12)
System.Threading.Tasks.Parallel (9)
System\Threading\Tasks\Parallel.ForEachAsync.cs (9)
346/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
353public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
361/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
369public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
377/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
384public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
393/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
402private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
713IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
Test.Utilities (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
TestDiscoveryWorker (1)
Text.Analyzers (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (13)
84Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
107Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
119IAsyncEnumerable<TSource> source,
121Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems,
156IAsyncEnumerable<TSource> source,
177Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
189IAsyncEnumerable<TSource> source,
191Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
222IAsyncEnumerable<TSource> source,
241IAsyncEnumerable<TSource> source,
265public static IAsyncEnumerable<TItem> RunAsync<TArgs>(
301/// but returns value as an <see cref="IAsyncEnumerable{TItem}"/>. Versus an <see cref="ImmutableArray{TItem}"/>.
305public static IAsyncEnumerable<TItem> RunParallelStreamAsync<TSource, TArgs>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (9)
212/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
219public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)
229/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
237public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
247/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
254public static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)
269/// <summary>Executes a for each operation on an <see cref="IAsyncEnumerable{TSource}"/> in which iterations may run in parallel.</summary>
278private static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)
614IAsyncEnumerable<TSource> source, Func<object, Task> taskBody,
WinFormsControlsTest (1)
xunit.assert (38)
AsyncCollectionAsserts.cs (36)
36 IAsyncEnumerable<T> collection,
49 IAsyncEnumerable<T> collection,
62 IAsyncEnumerable<T> collection,
75 IAsyncEnumerable<T> collection,
88 IAsyncEnumerable<T> collection,
101 IAsyncEnumerable<T> collection,
114 IAsyncEnumerable<T> collection) =>
127 IAsyncEnumerable<T> collection,
139 IAsyncEnumerable<T> collection,
149 public static void Distinct<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields | DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties | DynamicallyAccessedMemberTypes.PublicMethods)] T>(IAsyncEnumerable<T> collection) =>
160 IAsyncEnumerable<T> collection,
173 IAsyncEnumerable<T> collection) =>
186 IAsyncEnumerable<T> collection,
198 IAsyncEnumerable<T> collection,
208 public static void Empty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields | DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties | DynamicallyAccessedMemberTypes.PublicMethods)] T>(IAsyncEnumerable<T> collection) =>
221 IAsyncEnumerable<T>? actual) =>
237 IAsyncEnumerable<T>? expected,
238 IAsyncEnumerable<T>? actual) =>
256 IAsyncEnumerable<T>? actual,
274 IAsyncEnumerable<T>? expected,
275 IAsyncEnumerable<T>? actual,
294 IAsyncEnumerable<T>? actual,
312 IAsyncEnumerable<T>? expected,
313 IAsyncEnumerable<T>? actual,
327 public static void NotEmpty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields | DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties | DynamicallyAccessedMemberTypes.PublicMethods)] T>(IAsyncEnumerable<T> collection) =>
340 IAsyncEnumerable<T>? actual) =>
356 IAsyncEnumerable<T>? expected,
357 IAsyncEnumerable<T>? actual) =>
375 IAsyncEnumerable<T>? actual,
393 IAsyncEnumerable<T>? expected,
394 IAsyncEnumerable<T>? actual,
413 IAsyncEnumerable<T>? actual,
431 IAsyncEnumerable<T>? expected,
432 IAsyncEnumerable<T>? actual,
449 public static T Single<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields | DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties | DynamicallyAccessedMemberTypes.PublicMethods)] T>(IAsyncEnumerable<T> collection) =>
465 IAsyncEnumerable<T> collection,