ReducePermitsAsync Method
ReducePermitsAsync(int)
Reduces the number of available permits.
Declaration
Task ReducePermitsAsync(int delta)
Parameters
int | delta | The number of permits to reduce. |
Returns
Task |
Remarks
This method differs from AcquireAsync(int) as it does not block until permits become available. Similarly, if the caller has acquired some permits, they are not released with this call. In other words, this method arbitrarily decreases the available permits count (can even make it negative) without affecting the already acquired permits.