hsdev-0.3.1.3: Haskell development library
Control.Concurrent.FiniteChan
Synopsis
data Chan a Source #
Chan is stoppable channel
Chan
newChan :: IO (Chan a) Source #
openedChan :: Chan a -> IO Bool Source #
Is channel opened
closedChan :: Chan a -> IO Bool Source #
Is channel closed
doneChan :: Chan a -> IO Bool Source #
Is channel closed and all data consumed
sendChan :: Chan a -> a -> IO Bool Source #
Write data to channel if it is open
getChan :: Chan a -> IO (Maybe a) Source #
Get data from channel
closeChan :: Chan a -> IO () Source #
Close channel
stopChan :: Chan a -> IO [a] Source #
Close channel and read all messages