HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulelifted-base-0.2.3.12Haskell98

Control.Concurrent.QSemN.Lifted

This is a wrapped version of Control.Concurrent.QSemN with types generalised from IO to all monads in MonadBase.

Synopsis
datadata QSemN

QSemN is a quantity semaphore in which the resource is acquired and released in arbitrary amounts. It provides guaranteed FIFO ordering for satisfying blocked waitQSemN calls.

The pattern

bracket_ (waitQSemN n) (signalQSemN n) (...)

is safe; it never loses any of the resource.