1 instantiation of TaskAwaiter
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
2442return new TaskAwaiter(this);
66 references to TaskAwaiter
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.Hosting (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.Http.Extensions (4)
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\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\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\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.Shared.Tests (5)
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);
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
177else if (type == typeof(TaskAwaiter) ||
Microsoft.AspNetCore.SignalR.Core (4)
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)
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)
src\libraries\shims\mscorlib\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 (36)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (1)
72TaskAwaiter awaiter = task.GetAwaiter();
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (4)
108ref TaskAwaiter ta = ref Unsafe.As<TAwaiter, TaskAwaiter>(ref awaiter); // relies on TaskAwaiter/TaskAwaiter<T> having the same layout 109TaskAwaiter.UnsafeOnCompletedInternal(ta.m_task, box, continueOnCapturedContext: true); 114TaskAwaiter.UnsafeOnCompletedInternal(ta.m_task, box, (ta.m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs (4)
101TaskAwaiter.UnsafeOnCompletedInternal(t, box, _value._continueOnCapturedContext); 110TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, _value._continueOnCapturedContext); 206TaskAwaiter.UnsafeOnCompletedInternal(t, box, _value._continueOnCapturedContext); 215TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, _value._continueOnCapturedContext);
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> 189/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 307/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 314TaskAwaiter.OnCompletedInternal(m_task, continuation, continueOnCapturedContext: true, flowExecutionContext: true); 317/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 324TaskAwaiter.OnCompletedInternal(m_task, continuation, continueOnCapturedContext: true, flowExecutionContext: false); 335TaskAwaiter.ValidateEnd(m_task); 405/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 412TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: true); 415/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 422TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: false); 432TaskAwaiter.ValidateEnd(m_task, m_options); 487/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 494TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: true); 497/// <summary>Schedules the continuation onto the <see cref="Task"/> associated with this <see cref="TaskAwaiter"/>.</summary> 504TaskAwaiter.OnCompletedInternal(m_task, continuation, (m_options & ConfigureAwaitOptions.ContinueOnCapturedContext) != 0, flowExecutionContext: false); 515TaskAwaiter.ValidateEnd(m_task); // no need to pass options as SuppressThrowing isn't supported
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (4)
93TaskAwaiter.UnsafeOnCompletedInternal(t, box, continueOnCapturedContext: true); 101TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, continueOnCapturedContext: true); 175TaskAwaiter.UnsafeOnCompletedInternal(t, box, continueOnCapturedContext: true); 183TaskAwaiter.UnsafeOnCompletedInternal(Task.CompletedTask, box, continueOnCapturedContext: true);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
2440public TaskAwaiter GetAwaiter()
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
400TaskAwaiter.ValidateEnd(t); 813TaskAwaiter.ValidateEnd(t);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
635[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))]