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

◆ WaitAllBlockingCore()

static bool System.Threading.Tasks.Task< TResult >.WaitAllBlockingCore ( List< Task< TResult > > tasks,
int millisecondsTimeout,
CancellationToken cancellationToken )
inlinestaticprivateinherited

Definition at line 3193 of file Task.cs.

3194 {
3195 bool flag = false;
3196 SetOnCountdownMres setOnCountdownMres = new SetOnCountdownMres(tasks.Count);
3197 try
3198 {
3199 foreach (Task task in tasks)
3200 {
3201 task.AddCompletionAction(setOnCountdownMres, addBeforeOthers: true);
3202 }
3204 }
3205 finally
3206 {
3207 if (!flag)
3208 {
3209 foreach (Task task2 in tasks)
3210 {
3211 if (!task2.IsCompleted)
3212 {
3213 task2.RemoveContinuation(setOnCountdownMres);
3214 }
3215 }
3216 }
3217 }
3218 return flag;
3219 }

References System.cancellationToken, System.millisecondsTimeout, System.task, and System.tasks.

Referenced by System.Threading.Tasks.Task< TResult >.WaitAllCore().