Manager.receive

Pushes a new message into the queue, waking up one of the threads currently blocking to dequeue an item from it

class Manager
Result!(bool, QixException)
receive

Parameters

id QueueKey

the queue's id

item Item

the item to enqueue

Return Value

Type: Result!(bool, QixException)

a Result either containing a boolean flag about whether the admit policy allowed the enqueueing to occur or a QixException if the id does not refer to a queue registered with this manager

Meta