Next: , Previous: , Up: actor-lib: A standard library of sorts   [Contents][Index]


6.13 Queue

The (goblins actor-lib queue) module provides a FIFO queue.

Constructor: ^queue bcom

Constructs a FIFO queue actor which has the following methods:

  • length: Return the length of the queue.
  • empty?: Return #t if the queue is empty, #f otherwise.
  • enqueue val: Pushes val onto the queue.
  • dequeue: Removes and returns the oldest inserted value from the queue.
Persistence Environment: queue-env