setPermits
Updates the number of permits optionally considering the current value.
Parameters
updateFunction
A function that updates the number of permits considering the current value.
Updates the number of permits optionally considering the current value.
A function that updates the number of permits considering the current value.