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

◆ Invoke() [2/2]

Implements System.Threading.Tasks.ITaskCompletionAction.

Definition at line 924 of file TaskFactory.cs.

925 {
926 if (TplEventSource.Log.IsEnabled())
927 {
928 TplEventSource.Log.TraceOperationRelation(base.Id, CausalityRelation.Join);
929 }
930 if (completingTask.IsWaitNotificationEnabled)
931 {
933 }
934 if (Interlocked.Decrement(ref _count) == 0)
935 {
936 if (TplEventSource.Log.IsEnabled())
937 {
938 TplEventSource.Log.TraceOperationEnd(base.Id, AsyncCausalityStatus.Completed);
939 }
940 if (Task.s_asyncDebuggingEnabled)
941 {
942 Task.RemoveFromActiveTasks(this);
943 }
945 }
946 }
void SetNotificationForWaitCompletion(bool enabled)
Definition Task.cs:1426

References System.Threading.Interlocked.Decrement(), System.Threading.Tasks.TplEventSource.Log, System.Threading.Tasks.Task< TResult >.RemoveFromActiveTasks(), and System.Threading.Tasks.Task< TResult >.s_asyncDebuggingEnabled.