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

◆ Wait() [5/6]

bool System.Threading.SemaphoreSlim.Wait ( TimeSpan timeout)
inline

Definition at line 127 of file SemaphoreSlim.cs.

128 {
129 long num = (long)timeout.TotalMilliseconds;
130 if (num < -1 || num > int.MaxValue)
131 {
132 throw new ArgumentOutOfRangeException("timeout", timeout, SR.SemaphoreSlim_Wait_TimeoutWrong);
133 }
134 return Wait((int)timeout.TotalMilliseconds, CancellationToken.None);
135 }

References System.Threading.CancellationToken.None, System.SR.SemaphoreSlim_Wait_TimeoutWrong, System.timeout, and System.Threading.SemaphoreSlim.Wait().