1 instantiation of TaskAwaiter
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
2596return new TaskAwaiter(this);
70 references to TaskAwaiter
Microsoft.AspNetCore.Diagnostics (1)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.Hosting (1)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.Http.Extensions (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (4)
472(awaiter) => ((TaskAwaiter)awaiter).IsCompleted, 475((TaskAwaiter)awaiter).GetResult(); 480((TaskAwaiter)awaiter).OnCompleted(continuation); 484((TaskAwaiter)awaiter).UnsafeOnCompleted(continuation);
Microsoft.AspNetCore.Mvc.Core (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (4)
472(awaiter) => ((TaskAwaiter)awaiter).IsCompleted, 475((TaskAwaiter)awaiter).GetResult(); 480((TaskAwaiter)awaiter).OnCompleted(continuation); 484((TaskAwaiter)awaiter).UnsafeOnCompleted(continuation);
Microsoft.AspNetCore.OpenApi (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (4)
472(awaiter) => ((TaskAwaiter)awaiter).IsCompleted, 475((TaskAwaiter)awaiter).GetResult(); 480((TaskAwaiter)awaiter).OnCompleted(continuation); 484((TaskAwaiter)awaiter).UnsafeOnCompleted(continuation);
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.SignalR.Core (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (4)
472(awaiter) => ((TaskAwaiter)awaiter).IsCompleted, 475((TaskAwaiter)awaiter).GetResult(); 480((TaskAwaiter)awaiter).OnCompleted(continuation); 484((TaskAwaiter)awaiter).UnsafeOnCompleted(continuation);
Microsoft.Build (1)
Utilities\AwaitExtensions.cs (1)
56internal static TaskAwaiter GetAwaiter(this WaitHandle handle)
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommonMemberFilter.cs (1)
81if (type == typeof(TaskAwaiter) || type == typeof(ConfiguredTaskAwaitable))
mscorlib (1)
parent\ref\mscorlib.cs (1)
589[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.TaskAwaiter))]
netstandard (1)
netstandard.cs (1)
1579[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.TaskAwaiter))]
System.Private.CoreLib (45)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (2)
704TaskAwaiter.ValidateEnd(task); 731TaskAwaiter.ValidateEnd(task);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (2)
131TaskAwaiter.ValidateEnd(task); 139TaskAwaiter.ValidateEnd(taskOfT);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (6)
136TaskAwaiter.ValidateEnd(task); 157TaskAwaiter.ValidateEnd(task); 181TaskAwaiter.ValidateEnd(t); 220TaskAwaiter.ValidateEnd(t); 304TaskAwaiter.ValidateEnd(t); 372TaskAwaiter.ValidateEnd(t);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (4)
117ref TaskAwaiter ta = ref Unsafe.As<TAwaiter, TaskAwaiter>(ref awaiter); // relies on TaskAwaiter/TaskAwaiter<T> having the same layout 118TaskAwaiter.UnsafeOnCompletedInternal(ta.m_task, box, continueOnCapturedContext: true); 123TaskAwaiter.UnsafeOnCompletedInternal(ta.m_task, box, (ta.m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs (4)
101TaskAwaiter.UnsafeOnCompletedInternal(t, box, _value._continueOnCapturedContext); 118TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, _value._continueOnCapturedContext); 214TaskAwaiter.UnsafeOnCompletedInternal(t, box, _value._continueOnCapturedContext); 231TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, _value._continueOnCapturedContext);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (20)
28/// <summary>Initializes the <see cref="TaskAwaiter"/>.</summary> 41/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 51/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 166/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 192/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 335/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 342TaskAwaiter.OnCompletedInternal(m_task, continuation, continueOnCapturedContext: true, flowExecutionContext: true); 345/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 352TaskAwaiter.OnCompletedInternal(m_task, continuation, continueOnCapturedContext: true, flowExecutionContext: false); 363TaskAwaiter.ValidateEnd(m_task); 433/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 440TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: true); 443/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 450TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: false); 460TaskAwaiter.ValidateEnd(m_task, m_options); 515/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 522TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: true); 525/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 532TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: false); 543TaskAwaiter.ValidateEnd(m_task); // no need to pass options as SuppressThrowing isn't supported
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (4)
93TaskAwaiter.UnsafeOnCompletedInternal(t, box, continueOnCapturedContext: true); 109TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, continueOnCapturedContext: true); 183TaskAwaiter.UnsafeOnCompletedInternal(t, box, continueOnCapturedContext: true); 199TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, continueOnCapturedContext: true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
2594public TaskAwaiter GetAwaiter()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
407TaskAwaiter.ValidateEnd(t); 823TaskAwaiter.ValidateEnd(t);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
651[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.TaskAwaiter))]
System.Threading.Tasks (1)
System.Threading.Tasks.cs (1)
17[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.TaskAwaiter))]