stm-io-hooks-0.0.1: An STM monad with IO hooks
Control.Concurrent.AdvSTM.TVar
Contents
Description
Synopsis
data TVar a Source
newTVar :: a -> AdvSTM (TVar a)Source
See newTVar
newTVar
newTVarIO :: a -> IO (TVar a)Source
See newTVarIO
newTVarIO
readTVar :: TVar a -> AdvSTM aSource
Reads a value from a TVar. Blocks until the IO onCommit action(s) of the corresponding transaction are complete. See onCommit for a more detailed description of this behaviour.
onCommit
writeTVar :: TVar a -> a -> AdvSTM ()Source
Writes a value to a TVar. Blocks until the onCommit IO-action(s) are complete. See onCommit for details.