Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
UnliftIO.QSem
Description
Unlifted Control.Concurrent.QSem.
Since: 0.2.14
Documentation
signalQSem :: MonadIO m => QSem -> m () #
Lifted signalQSem
.
Since: 0.2.14
withQSem :: MonadUnliftIO m => QSem -> m a -> m a #
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.
Since: 0.2.14