GetAvailablePermitsAsync Method GetAvailablePermitsAsync() Gets the number of available permits. Declaration Task<int> GetAvailablePermitsAsync() Returns Task<int> The number of available permits.