concurrent-split-0.0.1.1: MVars and Channels with distinguished input and output side

Safe HaskellSafe
LanguageHaskell98

Control.Concurrent.Split.MVar

Documentation

data T dir a Source #

Instances
C T Source # 
Instance details

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 #