Queue.Queue

Queue type

Constructors

this
this(QueueKey id, AP ap)

Constructs a new queue with the given id and the admittance policy

this
this(QueueKey id)

Constructs a new queue with the given id

Members

Functions

id
QueueKey id()

Returns this queue's id

receive
bool receive(Item i)

Places an item into this queue and wakes up one of the waiter(s)

size
size_t size()

Returns the number of items in the queue

toString
string toString()

Returns a string representation of this queue

wait
Item wait()

Blocks until an item is available for dequeuing.

wait
Result!(Item, QixException) wait(Duration timeout)

Blocks up until the timeout for an item to become available for dequeuing.

Meta