12 implementations of ITaskCompletionAction
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
634
private sealed class ReadWriteTask : Task<int>,
ITaskCompletionAction
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (8)
2853
private protected sealed class CancellationPromise<TResult> : Task<TResult>,
ITaskCompletionAction
3043
private sealed class SetOnInvokeMres : ManualResetEventSlim,
ITaskCompletionAction
5129
private sealed class SetOnCountdownMres : ManualResetEventSlim,
ITaskCompletionAction
6048
private sealed class WhenAllPromise : Task,
ITaskCompletionAction
6397
private sealed class WhenAllPromise<T> : Task<T[]>,
ITaskCompletionAction
6628
private sealed class TwoTaskWhenAnyPromise<TTask> : Task<TTask>,
ITaskCompletionAction
where TTask : Task
6917
private sealed class WhenEachState : Queue<Task>, IValueTaskSource,
ITaskCompletionAction
7390
internal sealed class UnwrapPromise<TResult> : Task<TResult>,
ITaskCompletionAction
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (3)
1547
private sealed class CompleteOnCountdownPromise : Task<Task[]>,
ITaskCompletionAction
1617
private sealed class CompleteOnCountdownPromise<T> : Task<Task<T>[]>,
ITaskCompletionAction
2264
internal sealed class CompleteOnInvokePromise<TTask> : Task<TTask>,
ITaskCompletionAction
where TTask : Task
17 references to ITaskCompletionAction
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
695
void
ITaskCompletionAction
.Invoke(Task completingTask)
718
bool
ITaskCompletionAction
.InvokeMayRunArbitraryCode => true;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (1)
191
/// <summary>Invoked to set <see cref="
ITaskCompletionAction
.Invoke"/> of the <paramref name="box"/> as the awaiter's continuation.</summary>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (14)
2915
bool
ITaskCompletionAction
.InvokeMayRunArbitraryCode => true;
2917
void
ITaskCompletionAction
.Invoke(Task completingTask)
3491
case
ITaskCompletionAction
completionAction:
3540
else if (currentContinuation is not
ITaskCompletionAction
)
3595
Debug.Assert(currentContinuation is
ITaskCompletionAction
);
3596
RunOrQueueCompletionAction((
ITaskCompletionAction
)currentContinuation, canInlineContinuations);
3604
private void RunOrQueueCompletionAction(
ITaskCompletionAction
completionAction, bool allowInlining)
4507
this is not
ITaskCompletionAction
)
4528
internal void AddCompletionAction(
ITaskCompletionAction
action, bool addBeforeOthers = false)
6933
void
ITaskCompletionAction
.Invoke(Task completingTask)
6948
bool
ITaskCompletionAction
.InvokeMayRunArbitraryCode => false;
7101
if (continuationObject is
ITaskCompletionAction
singleCompletionAction)
7140
private readonly
ITaskCompletionAction
m_action;
7143
internal CompletionActionInvoker(
ITaskCompletionAction
action, Task completingTask)