Abstraction over the operations of a semaphore.
Constructors
AbstractSemacquireSem :: IO ()releaseSem :: IO ()
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · c7d136e · 2026-10-12
Moduleghc-10.0.0.20260917GHC2024
Implementation of a jobserver using system semaphores.
Abstraction over the operations of a semaphore.
AbstractSemacquireSem :: IO ()releaseSem :: IO ()Acquire/release bracket pattern: acquire a token, perform an action, and release the token.
Guarantees that the token is released in case that the inner action throws an exception.