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

◆ RemoveFromActiveTasks() [2/2]

static void System.Threading.Tasks.Task< TResult >.RemoveFromActiveTasks ( Task< TResult > task)
inlinestaticpackageinherited

Definition at line 1197 of file Task.cs.

1198 {
1200 if (dictionary == null)
1201 {
1202 return;
1203 }
1204 int id = task.Id;
1206 {
1207 dictionary.Remove(id);
1208 }
1209 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static Dictionary< int, Task > s_currentActiveTasks
Definition Task.cs:962

References System.dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.Threading.Tasks.Task< TResult >.s_currentActiveTasks, and System.task.

Referenced by System.Threading.Tasks.Task< TResult >.CancellationCleanupLogic(), System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.ClearStateUponCompletion(), System.Threading.Tasks.Task< TResult >.DelayPromise.CompleteTimedOut(), System.Threading.Tasks.Task< TResult >.FinishStageTwo(), System.Threading.Tasks.TaskFactory< TResult >.FromAsyncCoreLogic(), 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.Threading.Tasks.Task< TResult >.WhenAllPromise< T >.Invoke(), System.Threading.Tasks.TaskFactory< TResult >.CompleteOnCountdownPromise< T >.Invoke(), System.Threading.Tasks.TaskFactory< TResult >.CompleteOnInvokePromise.Invoke(), System.Threading.Tasks.Task< TResult >.WhenAllPromise< T >.Invoke(), and System.Threading.Tasks.UnwrapPromise< TResult >.TrySetFromTask().