Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
UnliftIO.QSemN
Description
Unlifted Control.Concurrent.QSemN.
Since: 0.2.14
Documentation
signalQSemN :: MonadIO m => QSemN -> Int -> m () #
Lifted signalQSemN
.
Since: 0.2.14
withQSemN :: MonadUnliftIO m => QSemN -> Int -> m a -> m a #
withQSemN
is an exception-safe wrapper for performing the
provided operation while holding N unit of value from the semaphore.
It ensures the semaphore cannot be leaked if there are exceptions.
Since: 0.2.14