Safe Haskell | None |
---|---|
Language | GHC2021 |
Polysemy.Conc.Effect.Semaphore
Description
Semaphore effect, Internal.
Documentation
data Semaphore (a :: Type -> Type) b where Source #
This effect abstracts over the concept of a quantity semaphore, a concurrency primitive that contains a number of slots that can be acquired and released.