232 references to Yield
aspire (3)
Commands\RunCommand.cs (1)
1115await Task.Yield();
DotNet\ProcessExecution.cs (1)
443await Task.Yield();
src\Shared\ParentProcessLivenessMonitor.cs (1)
64await Task.Yield();
aspire-managed (1)
src\Shared\ParentProcessLivenessMonitor.cs (1)
64await Task.Yield();
Aspire.Cli.Tests (10)
Commands\DescribeCommandTests.cs (2)
411await Task.Yield(); 709await Task.Yield();
Commands\DestroyCommandTests.cs (1)
333await Task.Yield();
Commands\LogsCommandTests.cs (3)
964await Task.Yield(); 1528await Task.Yield(); 1685await Task.Yield();
Commands\LsCommandTests.cs (2)
654await Task.Yield(); 831await Task.Yield();
Commands\RunCommandTests.cs (1)
2052await Task.Yield();
ProfileCaptureServiceTests.cs (1)
307await Task.Yield();
Aspire.Dashboard.Tests (1)
ChannelExtensionsTests.cs (1)
199await Task.Yield();
Aspire.Hosting.Tests (13)
ApplicationModel\ResourceAnnotationCollectionTests.cs (2)
205await Task.Yield(); 237await Task.Yield();
Dcp\DcpExecutorTests.cs (4)
6486await Task.Yield(); 7295await Task.Yield(); 7336await Task.Yield(); 7375await Task.Yield();
DebugSupportExtensionsTests.cs (1)
182await Task.Yield();
ExecutableResourceBuilderExtensionTests.cs (1)
132await Task.Yield();
InteractionServiceTests.cs (1)
306await Task.Yield();
Orchestrator\ApplicationOrchestratorTests.cs (1)
987await Task.Yield();
ResourceLoggerServiceTests.cs (1)
634await Task.Yield();
WithEnvironmentTests.cs (1)
205await Task.Yield();
WithProcessCommandTests.cs (1)
473await Task.Yield();
Aspire.TerminalHost (1)
src\Shared\ParentProcessLivenessMonitor.cs (1)
64await Task.Yield();
Binding.Http.IntegrationTests (2)
OperationContextTests.cs (2)
49await Task.Yield(); 59await Task.Yield(); // Hop back to original sync context
Binding.Tcp.IntegrationTests (7)
OperationContextAsyncFlowTests.cs (7)
36await Task.Yield(); 46await Task.Yield(); // Hop back to original sync context 71await Task.Yield(); 79await Task.Yield(); 93await Task.Yield(); // Hop back to original sync context 162await Task.Yield(); 175await Task.Yield(); // Hop back to original sync context
Client.TypedClient.IntegrationTests (2)
TypedProxyTests.4.0.0.cs (2)
598await Task.Yield(); 613await Task.Yield();
GenerateDocumentationAndConfigFiles (7)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\TestController.cs (5)
21await Task.Yield(); 30await Task.Yield(); 39await Task.Yield(); 47await Task.Yield(); 56await Task.Yield();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
1003await Task.Yield();
Microsoft.CodeAnalysis.Analyzers (7)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle (7)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Service\CodeFixService.cs (1)
156await Task.Yield().ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (2)
114await Task.Yield().ConfigureAwait(false); 123await Task.Yield().ConfigureAwait(false);
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (12)
Log\RoslynEventSource.cs (1)
77Task.Yield().GetAwaiter().OnCompleted(FireAndForgetSendFunctionDefinitions);
Remote\IRemoteKeepAliveService.cs (1)
108await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
TemporaryStorage\TemporaryStorageService.cs (2)
142await Task.Yield().ConfigureAwait(false); 291await Task.Yield().ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
466await Task.Yield().ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions.Tests (9)
ChatCompletion\ChatClientExtensionsTests.cs (1)
249await Task.Yield();
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (1)
1147await Task.Yield();
ChatCompletion\DelegatingChatClientTests.cs (1)
156await Task.Yield();
Files\DelegatingHostedFileClientTests.cs (1)
227await Task.Yield();
SpeechToText\DelegatingSpeechToTextClientTests.cs (1)
157await Task.Yield();
SpeechToText\SpeechToTextClientExtensionsTests.cs (1)
87await Task.Yield();
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (1)
160await Task.Yield();
TextToSpeech\DelegatingTextToSpeechClientTests.cs (1)
154await Task.Yield();
TextToSpeech\TextToSpeechResponseUpdateExtensionsTests.cs (1)
79await Task.Yield();
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIConversionTests.cs (4)
945await Task.Yield(); 1112await Task.Yield(); 1152await Task.Yield(); 2263await Task.Yield();
Microsoft.Extensions.AI.Tests (108)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
93await Task.Yield();
ChatCompletion\DistributedCachingChatClientTest.cs (4)
559await Task.Yield(); 610await Task.Yield(); 656await Task.Yield(); 785await Task.Yield();
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (4)
1478await Task.Yield(); 1554await Task.Yield(); 1974await Task.Yield(); 2082await Task.Yield();
ChatCompletion\FunctionInvokingChatClientTests.cs (19)
1242await Task.Yield(); 1272await Task.Yield(); 2039await Task.Yield(); 2092await Task.Yield(); 2155await Task.Yield(); 2219await Task.Yield(); 2311await Task.Yield(); 2382await Task.Yield(); 2476await Task.Yield(); 2584await Task.Yield(); 2682await Task.Yield(); 2786await Task.Yield(); 2883await Task.Yield(); 2962await Task.Yield(); 3063await Task.Yield(); 3169await Task.Yield(); 3471await Task.Yield(); 3531await Task.Yield(); 3603await Task.Yield();
ChatCompletion\ImageGeneratingChatClientTests.cs (3)
228await Task.Yield(); 358await Task.Yield(); 477await Task.Yield();
ChatCompletion\LoggingChatClientTests.cs (1)
107await Task.Yield();
ChatCompletion\OpenTelemetryChatClientTests.cs (18)
40await Task.Yield(); 69await Task.Yield(); 73await Task.Yield(); 155await Task.Yield(); 403await Task.Yield(); 421await Task.Yield(); 458await Task.Yield(); 587await Task.Yield(); 657await Task.Yield(); 675await Task.Yield(); 712await Task.Yield(); 822await Task.Yield(); 916await Task.Yield(); 918await Task.Yield(); 920await Task.Yield(); 979await Task.Yield(); 1103await Task.Yield(); 1105await Task.Yield();
ChatCompletion\UseDelegateChatClientTests.cs (1)
243await Task.Yield();
ChatRouting\FailoverChatClientTests.cs (3)
1165await Task.Yield(); 1172await Task.Yield(); 1184await Task.Yield();
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (3)
253await Task.Yield(); 304await Task.Yield(); 347await Task.Yield();
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
37await Task.Yield();
Files\LoggingHostedFileClientTests.cs (2)
232await Task.Yield(); 509await Task.Yield();
Files\OpenTelemetryHostedFileClientTests.cs (2)
187await Task.Yield(); 311await Task.Yield();
Functions\AIFunctionFactoryTest.cs (18)
226func = AIFunctionFactory.Create(async Task (int a, long b) => { result = a + b; await Task.Yield(); }); 232func = AIFunctionFactory.Create(async ValueTask (int a, long b) => { result = a + b; await Task.Yield(); }); 245await Task.Yield(); 983await Task.Yield(); 1001async (int i) => { await Task.Yield(); }, 1006await Task.Yield(); 1024async ValueTask (int i) => { await Task.Yield(); }, 1029await Task.Yield(); 1052await Task.Yield(); 1070async (int i) => { await Task.Yield(); return i; }, 1075await Task.Yield(); 1093async ValueTask<int> (int i) => { await Task.Yield(); return i; }, 1098await Task.Yield(); 1116async ValueTask<string?> (int i) => { await Task.Yield(); return null; }, 1121await Task.Yield(); 1139async ValueTask<B> (int i) => { await Task.Yield(); return new C(); }, 1144await Task.Yield(); 1501await Task.Yield();
Image\OpenTelemetryImageGeneratorTests.cs (1)
41await Task.Yield();
Realtime\LoggingRealtimeClientTests.cs (3)
165await Task.Yield(); 281await Task.Yield(); 323await Task.Yield();
Realtime\OpenTelemetryRealtimeClientTests.cs (16)
53await Task.Yield(); 216await Task.Yield(); 268await Task.Yield(); 320await Task.Yield(); 410await Task.Yield(); 569await Task.Yield(); 579await Task.Yield(); 589await Task.Yield(); 597await Task.Yield(); 992await Task.Yield(); 1000await Task.Yield(); 1009await Task.Yield(); 1019await Task.Yield(); 1028await Task.Yield(); 1040await Task.Yield(); 1052await Task.Yield();
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (1)
96await Task.Yield();
SpeechToText\LoggingSpeechToTextClientTests.cs (1)
110await Task.Yield();
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
46await Task.Yield(); 68await Task.Yield();
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
93await Task.Yield();
TextToSpeech\LoggingTextToSpeechClientTests.cs (1)
109await Task.Yield();
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
43await Task.Yield(); 65await Task.Yield();
Microsoft.Extensions.Caching.Hybrid.Tests (1)
UnreliableL2Tests.cs (1)
190await Task.Yield();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckPublisherHostedService.cs (1)
181await Task.Yield();
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
70await Task.Yield();
Microsoft.Extensions.ServiceDiscovery (1)
parent\parent\Shared\FxPolyfills\Task.cs (1)
30await Task.Yield();
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
parent\parent\Shared\FxPolyfills\Task.cs (1)
30await Task.Yield();
Roslyn.Diagnostics.Analyzers (7)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
244await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (1)
16/// <see cref="Task.Yield"/>.
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
350await Task.Yield().ConfigureAwait(false); 359await Task.Yield().ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\YieldAwaitableExtensions.cs (2)
15/// Implements <c>ConfigureAwait(bool)</c> for <see cref="Task.Yield"/>. The resulting behavior in asynchronous code 18/// <param name="awaitable">The awaitable provided by <see cref="Task.Yield"/>.</param>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncPriorityWorkQueue.cs (1)
151await Task.Yield().ConfigureAwait(false);
Stress.ApiService (1)
Program.cs (1)
238await Task.Yield();
Stress.AppHost (1)
InteractionCommands.cs (1)
35await Task.Yield();
System.ServiceModel.Primitives (1)
Internals\System\Runtime\TaskHelpers.cs (1)
392await Task.Yield();