Semaphore10
Constructors
Models
Combinators
releaseconstReleases the specified number of permits and returns the resulting available permits.releaseAllconstReleases all permits held by this semaphore and returns the resulting available permits.resizeconstSets the total number of permits managed by the semaphore.takeconstAcquires the specified number of permits and returns the acquired permit count.withPermitconstRuns an effect with a single permit and releases the permit when the effect completes.withPermitsconstRuns an effect with the given number of permits and releases the permits when the effect completes.withPermitsIfAvailableconstRuns an effect only if the specified number of permits are immediately available.