stm-split-0.0: TMVars, TVars and TChans with distinguished input and output side

Safe HaskellSafe-Infered

Control.Concurrent.STM.Split.Chan

Documentation

data T dir a Source

Instances

C T 

type In = T InSource

type Out = T OutSource

newIO :: IO (In a, Out a)Source

new :: STM (In a, Out a)Source

read :: Out a -> STM aSource

write :: In a -> a -> STM ()Source

writeIO :: In a -> a -> IO ()Source