| Portability | ghc |
|---|---|
| Stability | experimental |
| Maintainer | Bertram Felgenhauer <int-e@gmx.de> |
| Safe Haskell | Safe-Infered |
Data.IVar.Simple.IChan
Description
An IChans is a type of multicast channel built on top of IVars.
It supports multiple readers. The IChan data type represents the head
of a channel.
Writing to an IChan head has write-once semantics similar to IVars:
only the first of several attempts to write to the head will succeed,
returning a new IChan head for writing more values.
Documentation
Returns the contents of a channel as a list, starting at the channel head.
This is a pure computation. Forcing elements of the list may, however, block.