You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the definitions of AttemptAcquire and AcquireAsync, when given permitCount = 0, it is possible to check if the permits are exhausted or wait until the permits are replenished, respectively.
According to the definitions of
AttemptAcquire
andAcquireAsync
, when givenpermitCount = 0
, it is possible to check if the permits are exhausted or wait until the permits are replenished, respectively.Here are the links to the definitions:
https://learn.microsoft.com/en-us/dotnet/api/system.threading.ratelimiting.ratelimiter.attemptacquire?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/dotnet/api/system.threading.ratelimiting.ratelimiter.acquireasync?view=aspnetcore-7.0
I would be happy to know if there is any workaround to check the actual state of the permits without acquiring a lease.
The text was updated successfully, but these errors were encountered: