setPermits

abstract fun setPermits(updateFunction: (Int) -> Int)(source)

Updates the number of permits optionally considering the current value.

Parameters

updateFunction

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

See also