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

◆ AddExceptionsForCompletedTask() [2/2]

static void System.Threading.Tasks.Task< TResult >.AddExceptionsForCompletedTask ( ref List< Exception > exceptions,
Task< TResult > t )
inlinestaticpackageinherited

Definition at line 3221 of file Task.cs.

3222 {
3223 AggregateException exceptions2 = t.GetExceptions(includeTaskCanceledExceptions: true);
3224 if (exceptions2 != null)
3225 {
3226 t.UpdateExceptionObservedStatus();
3227 if (exceptions == null)
3228 {
3229 exceptions = new List<Exception>(exceptions2.InnerExceptionCount);
3230 }
3231 exceptions.AddRange(exceptions2.InternalInnerExceptions);
3232 }
3233 }

References System.exceptions, System.Threading.Tasks.Task< TResult >.GetExceptions(), and System.Threading.Tasks.Task< TResult >.UpdateExceptionObservedStatus().

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