unliftio-0.2.25.1: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
Safe HaskellNone
LanguageHaskell2010

UnliftIO.QSemN

Description

Unlifted Control.Concurrent.QSemN.

Since: 0.2.14

Synopsis

Documentation

data QSemN #

newQSemN :: MonadIO m => Int -> m QSemN Source #

Lifted newQSemN.

Since: 0.2.14

waitQSemN :: MonadIO m => QSemN -> Int -> m () Source #

Lifted waitQSemN.

Since: 0.2.14

signalQSemN :: MonadIO m => QSemN -> Int -> m () Source #

Lifted signalQSemN.

Since: 0.2.14

withQSemN :: MonadUnliftIO m => QSemN -> Int -> m a -> m a Source #

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