Portability | non-portable (requires STM) |
---|---|
Stability | experimental |
Maintainer | Peter Robinson <robinson@ecs.tuwien.ac.at> |
Corresponds to Control.Concurrent.STM.TChan
Documentation
newTChanIO :: IO (TChan a)Source
dupTChan :: TChan a -> AdvSTM (TChan a)Source
Duplicate a TChan
: the duplicate channel begins empty, but data written to
either channel from then on will be available from both. Hence this creates
a kind of broadcast channel, where data written by anyone is seen by
everyone else.
unGetTChan :: TChan a -> a -> AdvSTM ()Source
Put a data item back onto a channel, where it will be the next item read.