7 instantiations of Continuation
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
29
state.SentinelContinuation = sentinelContinuation = new
Continuation
();
45
state.SentinelContinuation = sentinelContinuation = new
Continuation
();
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (5)
151
Continuation newContinuation = new
Continuation
{ Data = new byte[dataSize], GCData = new object[numGCRefs] };
170
Continuation newContinuation = new
Continuation
{ Data = new byte[dataSize], GCData = gcData };
189
Continuation newContinuation = new
Continuation
{ Data = new byte[dataSize], GCData = gcData };
539
Continuation finalContinuation = new
Continuation
();
564
Continuation finalContinuation = new
Continuation
44 references to Continuation
System.Private.CoreLib (44)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (2)
27
Continuation
? sentinelContinuation = state.SentinelContinuation;
43
Continuation
? sentinelContinuation = state.SentinelContinuation;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (41)
77
public
Continuation
? Next;
78
public delegate*<
Continuation
,
Continuation
?> Resume;
136
private static void AsyncSuspend(
Continuation
continuation) => throw new UnreachableException();
142
public
Continuation
? SentinelContinuation;
149
private static
Continuation
AllocContinuation(
Continuation
prevContinuation, nuint numGCRefs, nuint dataSize)
151
Continuation
newContinuation = new Continuation { Data = new byte[dataSize], GCData = new object[numGCRefs] };
156
private static unsafe
Continuation
AllocContinuationMethod(
Continuation
prevContinuation, nuint numGCRefs, nuint dataSize, MethodDesc* method)
170
Continuation
newContinuation = new Continuation { Data = new byte[dataSize], GCData = gcData };
175
private static unsafe
Continuation
AllocContinuationClass(
Continuation
prevContinuation, nuint numGCRefs, nuint dataSize, MethodTable* methodTable)
189
Continuation
newContinuation = new Continuation { Data = new byte[dataSize], GCData = gcData };
209
static abstract
Continuation
GetContinuationState(T task);
210
static abstract void SetContinuationState(T task,
Continuation
value);
211
static abstract bool SetCompleted(T task,
Continuation
continuation);
252
public static
Continuation
GetContinuationState(ThunkTask<T> task) => (
Continuation
)task.m_stateObject!;
253
public static void SetContinuationState(ThunkTask<T> task,
Continuation
value)
258
public static bool SetCompleted(ThunkTask<T> task,
Continuation
continuation)
324
public static
Continuation
GetContinuationState(ThunkTask task) => (
Continuation
)task.m_stateObject!;
325
public static void SetContinuationState(ThunkTask task,
Continuation
value)
330
public static bool SetCompleted(ThunkTask task,
Continuation
continuation)
348
Continuation
continuation = TOps.GetContinuationState(task);
354
Continuation
? newContinuation = continuation.Resume(continuation);
369
Continuation
nextContinuation = UnwindToPossibleHandler(continuation);
414
private static
Continuation
UnwindToPossibleHandler(
Continuation
continuation)
427
Continuation
headContinuation = UnlinkHeadContinuation(out INotifyCompletion? notifier);
457
private static
Continuation
UnlinkHeadContinuation(out INotifyCompletion? notifier)
463
Continuation
sentinelContinuation = state.SentinelContinuation!;
464
Continuation
head = sentinelContinuation.Next!;
469
private static bool QueueContinuationFollowUpActionIfNecessary<T, TOps>(T task,
Continuation
continuation) where T : Task where TOps : IThunkTaskOps<T>
537
private static Task<T?> FinalizeTaskReturningThunk<T>(
Continuation
continuation)
539
Continuation
finalContinuation = new Continuation();
562
private static Task FinalizeTaskReturningThunk(
Continuation
continuation)
564
Continuation
finalContinuation = new Continuation
575
private static ValueTask<T?> FinalizeValueTaskReturningThunk<T>(
Continuation
continuation)
582
private static ValueTask FinalizeValueTaskReturningThunk(
Continuation
continuation)
src\System\StubHelpers.cs (1)
1595
internal static
Continuation
? AsyncCallContinuation() => throw new UnreachableException(); // Unconditionally expanded intrinsic