Haskell Hierarchical Libraries (stm package)Source codeContentsIndex
Control.Concurrent.STM.TChan
Portabilitynon-portable (requires STM)
Stabilityexperimental
Maintainerlibraries@haskell.org
Contents
TChans
Description
TChan: Transactional channels
Synopsis
data TChan a
newTChan :: STM (TChan a)
newTChanIO :: IO (TChan a)
readTChan :: TChan a -> STM a
writeTChan :: TChan a -> a -> STM ()
dupTChan :: TChan a -> STM (TChan a)
unGetTChan :: TChan a -> a -> STM ()
isEmptyTChan :: TChan a -> STM Bool
TChans
data TChan a
TChan is an abstract type representing an unbounded FIFO channel.
newTChan :: STM (TChan a)
newTChanIO :: IO (TChan a)
readTChan :: TChan a -> STM a
writeTChan :: TChan a -> a -> STM ()
dupTChan :: TChan a -> STM (TChan a)
unGetTChan :: TChan a -> a -> STM ()
isEmptyTChan :: TChan a -> STM Bool
Returns True if the supplied TChan is empty.
Produced by Haddock version 0.8