|
| Control.Concurrent.Chan.Closeable | | Portability | non-portable (concurrency) | | Stability | experimental | | Maintainer | sanzhiyan@gmail.com |
|
|
|
|
|
| Description |
| Unbounded closeable channels.
|
|
| Synopsis |
|
|
|
|
| The Chan type
|
|
|
| Chan is an abstract type representing an unbounded FIFO channel.
|
|
|
|
|
|
|
|
|
| Operations
|
|
|
| Build and returns a pair of Chan, data written on the W end can be read from the R end.
|
|
|
| Write a value to a Chan.
Returns True if successful, False if the channel is closed.
|
|
|
| Close the Chan, data can be no more written to it.
Returns True if the Chan was already closed.
|
|
|
| Non-blocking check.
|
|
|
| Read the next value from the Chan.
|Nothing if the Chan is closed.
|
|
|
| Forks a Chan: data that will be written (W)
or is yet to be read (R) on the argument, will also be available on the returned channel.
|
|
|
| Put a data item back onto a channel, where it will be the next item read.
|
|
|
| Returns True if the supplied Chan is empty, i.e. readChan won't block.
|
|
| Stream interface
|
|
|
| Return a lazy list representing the contents of the supplied
Chan, much like System.IO.hGetContents.
|
|
|
| Write an entire list of items to a Chan.
Returning the remainder if the channel has been closed meanwhile.
|
|
| Produced by Haddock version 2.1.0 |