PartitionedSemaphore12
Constructors
Models
Type Ids
Getters
Combinators
availableconstGets the current number of available permits.releaseconstReturns an effect that releases permits back to the shared pool and returns the current available permit count.takeconstReturns an effect that acquires the requested number of permits for the given partition key.withPermitconstRuns an effect after acquiring one permit for a partition, then releases the permit when the effect exits.withPermitsconstRuns an effect after acquiring permits for a partition, then releases those permits when the effect exits.withPermitsIfAvailableconstRuns an effect only when the requested permits can be acquired immediately, returning the result in Some.