Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Lifted TVar
operations.
Synopsis
- data TVar a
- newTVar :: MonadBase STM μ => α -> μ (TVar α)
- newTVarIO :: MonadBase IO μ => α -> μ (TVar α)
- readTVar :: MonadBase STM μ => TVar α -> μ α
- readTVarIO :: MonadBase IO μ => TVar α -> μ α
- writeTVar :: MonadBase STM μ => TVar α -> α -> μ ()
- modifyTVar :: MonadBase STM μ => TVar α -> (α -> α) -> μ ()
- modifyTVar' :: MonadBase STM μ => TVar α -> (α -> α) -> μ ()
- swapTVar :: MonadBase STM μ => TVar α -> α -> μ α
- registerDelay :: MonadBase IO μ => Int -> μ (TVar Bool)
- mkWeakTVar :: MonadBase IO μ => TVar α -> IO () -> μ (Weak (TVar α))
Documentation
Shared memory locations that support atomic memory transactions.
readTVarIO :: MonadBase IO μ => TVar α -> μ α Source #
A lifted version of readTVarIO
.
modifyTVar :: MonadBase STM μ => TVar α -> (α -> α) -> μ () Source #
A lifted version of modifyTVar
.
modifyTVar' :: MonadBase STM μ => TVar α -> (α -> α) -> μ () Source #
A lifted version of modifyTVar'
.
registerDelay :: MonadBase IO μ => Int -> μ (TVar Bool) Source #
A lifted version of registerDelay
.
mkWeakTVar :: MonadBase IO μ => TVar α -> IO () -> μ (Weak (TVar α)) Source #
A lifted version of mkWeakTVar
.