Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddToActiveTasks() [2/2]

static bool System.Threading.Tasks.Task< TResult >.AddToActiveTasks ( Task< TResult > task)
inlinestaticpackageinherited

Definition at line 1186 of file Task.cs.

1187 {
1189 int id = task.Id;
1191 {
1192 dictionary[id] = task;
1193 }
1194 return true;
1195 }
static Dictionary< int, Task > s_currentActiveTasks
Definition Task.cs:962

References System.Threading.Interlocked.CompareExchange(), System.dictionary, System.Threading.Volatile.Read(), System.Threading.Tasks.Task< TResult >.s_currentActiveTasks, and System.task.

Referenced by System.Threading.Tasks.TaskFactory< TResult >.CompleteOnCountdownPromise< T >.CompleteOnCountdownPromise(), System.Threading.Tasks.TaskFactory< TResult >.CompleteOnCountdownPromise< T >.CompleteOnCountdownPromise(), System.Threading.Tasks.TaskFactory< TResult >.CompleteOnInvokePromise.CompleteOnInvokePromise(), System.Threading.Tasks.ContinueWithTaskContinuation.ContinueWithTaskContinuation(), System.Threading.Tasks.Task< TResult >.DelayPromise.DelayPromise(), System.Threading.Tasks.UnwrapPromise< TResult >.UnwrapPromise(), System.Threading.Tasks.Task< TResult >.WhenAllPromise< T >.WhenAllPromise(), System.Threading.Tasks.Task< TResult >.WhenAllPromise< T >.WhenAllPromise(), System.Threading.Tasks.TaskFactory< TResult >.FromAsyncImpl(), System.Threading.Tasks.TaskFactory< TResult >.FromAsyncImpl(), System.Threading.Tasks.TaskFactory< TResult >.FromAsyncImpl< TArg1 >(), System.Threading.Tasks.TaskFactory< TResult >.FromAsyncImpl< TArg1, TArg2 >(), System.Threading.Tasks.TaskFactory< TResult >.FromAsyncImpl< TArg1, TArg2, TArg3 >(), System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.GetStateMachineBox< TStateMachine >(), System.Runtime.CompilerServices.TaskAwaiter< TResult >.OutputWaitEtwEvents(), and System.Threading.Tasks.Task< TResult >.ScheduleAndStart().