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

◆ CreateLinkedTokenSource() [3/3]

static CancellationTokenSource System.Threading.CancellationTokenSource.CreateLinkedTokenSource ( params CancellationToken[] tokens)
inlinestaticinherited

Definition at line 664 of file CancellationTokenSource.cs.

665 {
666 if (tokens == null)
667 {
668 throw new ArgumentNullException("tokens");
669 }
670 return tokens.Length switch
671 {
672 0 => throw new ArgumentException(SR.CancellationToken_CreateLinkedToken_TokensIsEmpty),
675 _ => new LinkedNCancellationTokenSource(tokens),
676 };
677 }
static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token1, CancellationToken token2)

References System.SR.CancellationToken_CreateLinkedToken_TokensIsEmpty, and System.Threading.CancellationTokenSource.CreateLinkedTokenSource().