165 references to Yield
BasicTestApp (8)
InteropTest\JavaScriptInterop.cs (5)
23await Task.Yield(); 401await Task.Yield(); 423await Task.Yield(); 476await Task.Yield(); 519await Task.Yield();
Program.cs (1)
94await Task.Yield();
ServerReliability\ThrowingOnAfterRenderAsyncComponent.cs (1)
20await Task.Yield();
ServerReliability\ThrowingSetParametersAsyncComponent.cs (1)
16await Task.Yield();
BasicWebSite (2)
Controllers\AsyncActionsController.cs (1)
27await Task.Yield();
Controllers\AsyncDisposableController.cs (1)
37await Task.Yield();
FormatterWebSite (1)
Controllers\AsyncEnumerableController.cs (1)
19await Task.Yield();
HttpStress (1)
Program.cs (1)
466await Task.Yield();
InMemory.FunctionalTests (4)
ConnectionMiddlewareTests.cs (1)
364await Task.Yield();
HttpsConnectionMiddlewareTests.cs (2)
172await Task.Yield(); 335await Task.Yield();
HttpsTests.cs (1)
406await Task.Yield();
Interop.FunctionalTests (1)
HttpClientHttp2InteropTests.cs (1)
218await Task.Yield(); // Intermix writes
Microsoft.AspNetCore.Components.Authorization.Tests (1)
TestAsyncAuthorizationService.cs (1)
22await Task.Yield();
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
EndpointHtmlRendererTest.cs (1)
1722await Task.Yield();
RazorComponentResultTest.cs (4)
111await Task.Yield(); 197await Task.Yield(); 345await Task.Yield(); // Just to show it's still not completed after 378await Task.Yield(); // Just to show it's still not completed after
Microsoft.AspNetCore.Components.Tests (16)
ComponentBaseTest.cs (1)
362await Task.Yield();
NavigationManagerTest.cs (9)
312await Task.Yield(); 476await Task.Yield(); 536await Task.Yield(); 717await Task.Yield(); 743await Task.Yield(); 748await Task.Yield(); 769await Task.Yield(); 791await Task.Yield(); 796await Task.Yield();
RendererTest.cs (3)
3927await Task.Yield(); 3939await Task.Yield(); 5819await Task.Yield();
Rendering\RendererSynchronizationContextTest.cs (3)
278await Task.Yield(); 386await Task.Yield(); 771await Task.Yield();
Microsoft.AspNetCore.Components.Web.Tests (3)
HtmlRendering\HtmlRendererTest.cs (3)
1225await Task.Yield(); 1325await Task.Yield(); 1345await Task.Yield();
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (3)
QueueEmptyOverhead.cs (1)
68await Task.Yield();
QueueFullOverhead.cs (1)
52await Task.Yield();
QueueRequestsOverwritten.cs (1)
52await Task.Yield();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
633await Task.Yield();
Microsoft.AspNetCore.Http.Extensions.Tests (19)
HttpResponseJsonExtensionsTests.cs (6)
275await Task.Yield(); 300await Task.Yield(); 330await Task.Yield(); 364await Task.Yield(); 398await Task.Yield(); 432await Task.Yield();
RequestDelegateFactoryTests.cs (13)
478await Task.Yield(); 496await Task.Yield(); 1312await Task.Yield(); 1319await Task.Yield(); 2246await Task.Yield(); 2257await Task.Yield(); 2332await Task.Yield(); 2337await Task.Yield(); 2346await Task.Yield(); 2402await Task.Yield(); 2442await Task.Yield(); 2453await Task.Yield(); 2468await Task.Yield();
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestTimeoutsMiddlewareBenchmark.cs (2)
21async context => { await Task.Yield(); }, 27async context => { await Task.Yield(); },
Microsoft.AspNetCore.Http.Results.Tests (1)
HttpResultsHelperTests.cs (1)
226await Task.Yield();
Microsoft.AspNetCore.InternalTesting.Tests (6)
CollectingEventListenerTest.cs (6)
23await Task.Yield(); 25await Task.Yield(); 27await Task.Yield(); 44await Task.Yield(); 46await Task.Yield(); 48await Task.Yield();
Microsoft.AspNetCore.Mvc.Core.Test (15)
Formatters\SystemTextJsonOutputFormatterTest.cs (3)
149await Task.Yield(); 253await Task.Yield(); 337await Task.Yield();
Infrastructure\ActionMethodExecutorTest.cs (1)
487return Task.Yield();
Infrastructure\AsyncEnumerableReaderTest.cs (5)
222await Task.Yield(); 229await Task.Yield(); 238await Task.Yield(); 245await Task.Yield(); 265await Task.Yield();
Infrastructure\JsonResultExecutorTestBase.cs (6)
384await Task.Yield(); 418await Task.Yield(); 442await Task.Yield(); 467await Task.Yield(); 521await Task.Yield(); 528await Task.Yield();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerOutputFormatterTest.cs (2)
746await Task.Yield(); 782await Task.Yield();
XmlSerializerOutputFormatterTest.cs (2)
528await Task.Yield(); 564await Task.Yield();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (15)
NewtonsoftJsonOutputFormatterTest.cs (3)
467await Task.Yield(); 507await Task.Yield(); 545await Task.Yield();
NewtonsoftJsonResultExecutorTest.cs (1)
56await Task.Yield();
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (5)
222await Task.Yield(); 229await Task.Yield(); 238await Task.Yield(); 245await Task.Yield(); 265await Task.Yield();
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (6)
384await Task.Yield(); 418await Task.Yield(); 442await Task.Yield(); 467await Task.Yield(); 521await Task.Yield(); 528await Task.Yield();
Microsoft.AspNetCore.OutputCaching.Tests (3)
MemoryOutputCacheStoreTests.cs (3)
82await Task.Yield(); 188await Task.Yield(); 193await Task.Yield();
Microsoft.AspNetCore.Routing.FunctionalTests (1)
EndpointRoutingIntegrationTest.cs (1)
18private static readonly RequestDelegate TestDelegate = async context => await Task.Yield();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
2331await Task.Yield();
Microsoft.AspNetCore.SignalR.Client.Tests (24)
LongPollingTransportTests.cs (15)
38await Task.Yield(); 73await Task.Yield(); 107await Task.Yield(); 162await Task.Yield(); 190await Task.Yield(); 236await Task.Yield(); 281await Task.Yield(); 330await Task.Yield(); 372await Task.Yield(); 411await Task.Yield(); 466await Task.Yield(); 534await Task.Yield(); 590await Task.Yield(); 619await Task.Yield(); 645await Task.Yield();
ServerSentEventsTransportTests.cs (8)
38await Task.Yield(); 132await Task.Yield(); 184await Task.Yield(); 239await Task.Yield(); 282await Task.Yield(); 313await Task.Yield(); 371await Task.Yield(); 398await Task.Yield();
TestHttpMessageHandler.cs (1)
80await Task.Yield();
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubDispatcherBenchmark.cs (1)
176await Task.Yield();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
TestConnectionMultiplexer.cs (1)
353await Task.Yield();
Microsoft.AspNetCore.SignalR.Tests (11)
HubConnectionHandlerTestUtils\Hubs.cs (11)
708await Task.Yield(); 714await Task.Yield(); 722await Task.Yield(); 729await Task.Yield(); 738await Task.Yield(); 815await Task.Yield(); 821await Task.Yield(); 827await Task.Yield(); 833await Task.Yield(); 1101await Task.Yield(); 1118await Task.Yield();
Microsoft.Build.Tasks.Core (1)
Copy.cs (1)
572await System.Threading.Tasks.Task.Yield();
Microsoft.DotNet.Helix.JobSender (1)
Payloads\DirectoryPayload.cs (1)
40await Task.Yield();
Microsoft.DotNet.Helix.Sdk (2)
CreateXUnitWorkItems.cs (1)
88await Task.Yield();
WaitForHelixJobCompletion.cs (1)
36await Task.Yield();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckPublisherHostedService.cs (1)
181await Task.Yield();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
HealthCheckPublisherHostedServiceTest.cs (1)
362await Task.Yield();
Microsoft.JSInterop.Tests (1)
Infrastructure\DotNetDispatcherTest.cs (1)
1001await Task.Yield();
Mvc.Api.Analyzers.Test (7)
TestFiles\ActualApiResponseMetadataFactoryTest\TryGetActualResponseMetadataTests.cs (3)
13await Task.Yield(); 21await Task.Yield(); 29await Task.Yield();
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
15await Task.Yield();
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
15await Task.Yield();
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithAttributeAsynchronouslyReturnsValue_WithoutDocumentation.cs (1)
14await Task.Yield();
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForOkResultReturningAction.cs (1)
14await Task.Yield();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
524await Task.Yield();