Queue.receive

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

The item is only enqueued if there is an admittance policy associated with this queue, and if so, if it evaluates to true.

struct Queue
bool
receive
(
Item i
)

Parameters

i Item

the item to attempt to enqueue

Return Value

Type: bool

true if enqueued, false otherwise

Meta