Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A quantity semaphore effect.
Documentation
data Semaphore :: Effect 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.
Instances
type DefiningModule Semaphore Source # | |
Defined in Polysemy.Conc.Effect.Semaphore |
interpretSemaphoreQ :: Member (Embed IO) r => Int -> InterpreterFor Semaphore r Source #
interpretSemaphoreT :: Member (Embed IO) r => Integer -> InterpreterFor Semaphore r Source #