concurrent-split-0.0.1.1: MVars and Channels with distinguished input and output side
Control.Concurrent.Split.MVar
data T dir a Source #
Defined in Control.Concurrent.Split.MVar
Methods
new :: IO (T In a, T Out a) Source #
read :: T Out a -> IO a Source #
write :: T In a -> a -> IO () Source #
type In = T In Source #
type Out = T Out Source #
newEmpty :: IO (In a, Out a) Source #
take :: Out a -> IO a Source #
tryTake :: Out a -> IO (Maybe a) Source #
put :: In a -> a -> IO () Source #
tryPut :: In a -> a -> IO Bool Source #