| Portability | POSIX |
|---|---|
| Stability | experimental |
| Maintainer | bastianholst@gmx.de |
| Safe Haskell | Safe-Inferred |
Control.Concurrent.Bag.TaskBuffer
Description
This module contains the definition of a task buffer in the IO monad,
TaskBuffer, and the functions to create a Stack and a Queue buffer.
- data TaskBuffer a = TaskBuffer {
- writeBuffer :: a -> IO ()
- readBuffer :: IO a
- data BufferType
- newChanBuffer :: IO (TaskBuffer r)
- newStackBuffer :: IO (TaskBuffer r)
Documentation
data TaskBuffer a Source
A buffer holding tasks.
For this type, all access functions use the IO monad.
Constructors
| TaskBuffer | |
Fields
| |
data BufferType Source
newChanBuffer :: IO (TaskBuffer r)Source
Create a new Queue buffer from a Chan.
newStackBuffer :: IO (TaskBuffer r)Source
Create a new Stack buffer from a Stack.