Moduleunliftio-0.2.25.1Haskell2010
UnliftIO.QSem
Unlifted Control.Concurrent.QSem.
Synopsis
- newtype QSem
- value newQSem
- value waitQSem
- value signalQSem
- value withQSem
- Packageunliftio-0.2.25.1
- Exports5
- LanguageHaskell2010
- LicenceMIT
- SourceQSem.hs
Lifted newQSem.
Lifted waitQSem.
Lifted signalQSem.
withQSem is an exception-safe wrapper for performing the provided operation while holding a unit of value from the semaphore. It ensures the semaphore cannot be leaked if there are exceptions.