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

◆ ThrowWithStandardMessageIfCanceled()

static void System.Linq.Parallel.CancellationState.ThrowWithStandardMessageIfCanceled ( CancellationToken externalCancellationToken)
inlinestaticpackage

Definition at line 33 of file CancellationState.cs.

34 {
35 if (externalCancellationToken.IsCancellationRequested)
36 {
37 string pLINQ_ExternalCancellationRequested = System.SR.PLINQ_ExternalCancellationRequested;
38 throw new OperationCanceledException(pLINQ_ExternalCancellationRequested, externalCancellationToken);
39 }
40 }
static string PLINQ_ExternalCancellationRequested
Definition SR.cs:26
Definition SR.cs:7

References System.Threading.CancellationToken.IsCancellationRequested, and System.SR.PLINQ_ExternalCancellationRequested.

Referenced by System.Linq.Parallel.QueryOpeningEnumerator< TOutput >.MoveNext(), System.Linq.Parallel.QueryOpeningEnumerator< TOutput >.OpenQuery(), and System.Linq.Parallel.ExceptionAggregator.ThrowOCEorAggregateException().