getPermitsRemaining

fun getPermitsRemaining(unit: TimeUnit, timeout: Long): Long

Returns the maximum number of permits that could have been acquired by a call to tryAcquire, assuming the caller passed the same timeout and unit.