Chan is an abstract type representing an unbounded FIFO channel.
Moduleconcurrency-1.11.0.3Haskell2010
Control.Concurrent.Classy.Chan
Unbounded channels.
Deviations: Chan as defined here does not have an Eq
instance, this is because the MonadConc MVar type does not have
an Eq constraint. The deprecated unGetChan and isEmptyCHan
functions are not provided. Furthermore, the getChanContents
function is not provided as it needs unsafe I/O.
- 1 type
- 5 values
- Packageconcurrency-1.11.0.3
- Exports6
- LanguageHaskell2010
- LicenceMIT
- SourceChan.hs
The Chan type
1 declarationOperations
4 declarationsBuild and returns a new instance of Chan.
Write a value to a Chan.
Read the next value from the Chan.
Duplicate a Chan: 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.
Stream interface
1 declarationWrite an entire list of items to a Chan.