TryAcquireAsync Method
TryAcquireAsync(int, long)
Tries to acquire permits, if enough are available, within the specified timeout duration.
Declaration
Task<bool> TryAcquireAsync(int permits = 1, long timeoutMs = 0)
Parameters
int | permits | The number of permits to acquire. |
long | timeoutMs | The timeout duration, in milliseconds. |
Returns
Task<bool> |
|