io.github.timwspence.cats.stm
Convenience definition of a semaphore in the STM monad.
STM
Analogous to cats.effect.concurrent.Semaphore.
cats.effect.concurrent.Semaphore
Acquire a permit.
Acquire a permit. Retries if no permits are available.
Get the number of permits currently available.
Release a currently held permit.
(Since version ) see corresponding Javadoc for more information.
Convenience definition of a semaphore in the
STM
monad.Analogous to
cats.effect.concurrent.Semaphore
.