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

◆ WaitAsync() [6/6]

Task< bool > System.Threading.SemaphoreSlim.WaitAsync ( TimeSpan timeout,
CancellationToken cancellationToken )
inline

Definition at line 290 of file SemaphoreSlim.cs.

291 {
292 long num = (long)timeout.TotalMilliseconds;
293 if (num < -1 || num > int.MaxValue)
294 {
295 throw new ArgumentOutOfRangeException("timeout", timeout, SR.SemaphoreSlim_Wait_TimeoutWrong);
296 }
297 return WaitAsync((int)timeout.TotalMilliseconds, cancellationToken);
298 }

References System.cancellationToken, System.SR.SemaphoreSlim_Wait_TimeoutWrong, System.timeout, and System.Threading.SemaphoreSlim.WaitAsync().