Much of the STM chan functionality exists in the
SplitTChan and class,
which you should see for documentation.
The input side of an unbounded FIFO channel.
The output side of an unbounded FIFO channel.
See also the
Create a new write end of a TChan. Use
dupTChan to get an
values can be read from.
Putting values back
Put a data item back onto a channel, where it will be the next item read.
Create a duplicate
OutChan from an
empty but will receive a copy of all subsequent values written.