hsdev-0.3.3.5: Haskell development library

Safe HaskellSafe
LanguageHaskell98

Control.Concurrent.FiniteChan

Synopsis

Documentation

data Chan a Source #

Chan is stoppable channel

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