BChan is an abstract type representing a bounded FIFO channel.
Modulebrick-3.0Haskell2010
Brick.BChan
Synopsis
- data BChan
- value newBChan
- value writeBChan
- value writeBChanNonBlocking
- value readBChan
- value readBChan2
- Packagebrick-3.0
- Exports6
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceBChan.hs
Builds and returns a new instance of BChan.
Writes a value to a BChan; blocks if the channel is full.
Reads the next value from the BChan; blocks if necessary.
Reads the next value from either BChan, prioritizing the first
BChan; blocks if necessary.