TQueueType
A transactional FIFO queue, built from a transactional reference.
Specification
Kind
Type
Members
8
Examples
0
makeSignature
TQueue.make capacity
unboundedSignature
TQueue.unbounded
boundedSignature
TQueue.bounded capacity
offerSignature
TQueue.offer item queue
takeSignature
TQueue.take queue
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| make | TQueue.make capacity | Creates a transactional queue with the supplied capacity, or unbounded when None. |
| unbounded | TQueue.unbounded | Creates an unbounded transactional queue. |
| bounded | TQueue.bounded capacity | Creates a bounded transactional queue. |
| offer | TQueue.offer item queue | Adds an item, retrying when the queue is at capacity. |
| take | TQueue.take queue | Removes and returns the oldest item, retrying when the queue is empty. |
| size | TQueue.size queue | Returns the number of items currently in the queue. |
| isEmpty | TQueue.isEmpty queue | Returns whether the queue is empty. |
| isFull | TQueue.isFull queue | Returns whether the queue is at its capacity. |

