stm-split-0.0.1: TMVars, TVars and TChans with distinguished input and output side
Control.Concurrent.STM.Split.MVar
data T dir a Source
Instances
type In = T InSource
type Out = T OutSource
newEmptyIO :: IO (In a, Out a)Source
newEmpty :: STM (In a, Out a)Source
newIO :: a -> IO (In a, Out a)Source
new :: a -> STM (In a, Out a)Source
take :: Out a -> STM aSource
tryTake :: Out a -> STM (Maybe a)Source
put :: In a -> a -> STM ()Source
tryPut :: In a -> a -> STM BoolSource