|
Control.Concurrent.AdvSTM.TChan | Portability | non-portable (requires STM) | Stability | experimental | Maintainer | Peter Robinson <robinson@ecs.tuwien.ac.at> |
|
|
|
Description |
Corresponds to Control.Concurrent.STM.TChan
|
|
Synopsis |
|
|
|
Documentation |
|
|
TChan is an abstract type representing an unbounded FIFO channel.
|
|
|
|
Build and returns a new instance of TChan
|
|
|
IO version of newTChan. This is useful for creating top-level
TChans using System.IO.Unsafe.unsafePerformIO, because using
atomically inside System.IO.Unsafe.unsafePerformIO isn't
possible.
|
|
|
Read the next value from the TChan.
|
|
|
Write a value to a TChan.
|
|
|
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.
|
|
|
Put a data item back onto a channel, where it will be the next item read.
|
|
|
Returns True if the supplied TChan is empty.
|
|
Produced by Haddock version 2.4.2 |