HORIZON HASKELLDocslts/ghc-10.0.xa64b84b2026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · a64b84b · 2026-10-19

Modulelifted-base-0.2.3.12

Control.Concurrent.QSem.Lifted

  • 1 type
  • 3 values
newtypenewtype QSem
#

QSem is a quantity semaphore in which the resource is acquired and released in units of one. It provides guaranteed FIFO ordering for satisfying blocked waitQSem calls.

The pattern

bracket_ waitQSem signalQSem (...)

is safe; it never loses a unit of the resource.