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

◆ CheckMultiTaskContinuationOptions()

static void System.Threading.Tasks.TaskFactory< TResult >.CheckMultiTaskContinuationOptions ( TaskContinuationOptions continuationOptions)
inlinestaticpackage

Definition at line 1703 of file TaskFactory.cs.

1704 {
1705 if ((continuationOptions & (TaskContinuationOptions.LongRunning | TaskContinuationOptions.ExecuteSynchronously)) == (TaskContinuationOptions.LongRunning | TaskContinuationOptions.ExecuteSynchronously))
1706 {
1707 throw new ArgumentOutOfRangeException("continuationOptions", SR.Task_ContinueWith_ESandLR);
1708 }
1709 if (((uint)continuationOptions & 0xFFF0FFC0u) != 0)
1710 {
1711 throw new ArgumentOutOfRangeException("continuationOptions");
1712 }
1713 if ((continuationOptions & (TaskContinuationOptions.OnlyOnRanToCompletion | TaskContinuationOptions.NotOnRanToCompletion)) != 0)
1714 {
1715 throw new ArgumentOutOfRangeException("continuationOptions", SR.Task_MultiTaskContinuation_FireOptions);
1716 }
1717 }

References System.continuationOptions, System.SR.Task_ContinueWith_ESandLR, and System.SR.Task_MultiTaskContinuation_FireOptions.

Referenced by System.Threading.Tasks.TaskFactory< TResult >.TaskFactory(), System.Threading.Tasks.TaskFactory< TResult >.ContinueWhenAllImpl(), System.Threading.Tasks.TaskFactory< TResult >.ContinueWhenAllImpl< TAntecedentResult >(), System.Threading.Tasks.TaskFactory< TResult >.ContinueWhenAnyImpl(), and System.Threading.Tasks.TaskFactory< TResult >.ContinueWhenAnyImpl< TAntecedentResult >().