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

Safe HaskellSafe-Infered

Control.Concurrent.STM.Split.MVar

Documentation

data T dir a Source

Instances

C T 

type In = T InSource

type Out = T OutSource

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

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

take :: Out a -> STM aSource

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

tryPut :: In a -> a -> STM BoolSource