updateSemaphoreStatePermits

protected open override fun updateSemaphoreStatePermits(updateFunction: (Int) -> Int)(source)

Updates the number of permits in the semaphore state.

Parameters

updateFunction

A function that updates the number of permits considering the current value.