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

◆ CancellationTokenSource() [2/3]

System.Threading.CancellationTokenSource.CancellationTokenSource ( TimeSpan delay)
inline

Definition at line 331 of file CancellationTokenSource.cs.

332 {
333 long num = (long)delay.TotalMilliseconds;
334 if (num < -1 || num > 4294967294u)
335 {
336 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.delay);
337 }
338 InitializeWithTimer((uint)num);
339 }

References System.delay, System.Threading.CancellationTokenSource.InitializeWithTimer(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().