Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- class Queue q where
- type QueueValue q α
- readQueue :: q α -> STM (QueueValue q α)
- tryReadQueue :: q α -> STM (Maybe (QueueValue q α))
- peekQueue :: q α -> STM (QueueValue q α)
- tryPeekQueue :: q α -> STM (Maybe (QueueValue q α))
- writeQueue :: q α -> α -> STM ()
- unGetQueue :: q α -> α -> STM ()
- isEmptyQueue :: q α -> STM Bool
- awaitQueueEmpty :: Queue q => q α -> STM ()
Documentation
type QueueValue q α Source
readQueue :: q α -> STM (QueueValue q α) Source
tryReadQueue :: q α -> STM (Maybe (QueueValue q α)) Source
peekQueue :: q α -> STM (QueueValue q α) Source
tryPeekQueue :: q α -> STM (Maybe (QueueValue q α)) Source
writeQueue :: q α -> α -> STM () Source
unGetQueue :: q α -> α -> STM () Source
isEmptyQueue :: q α -> STM Bool Source
awaitQueueEmpty :: Queue q => q α -> STM () Source
Block until a queue is empty.