Manager.wait

Wait indefinately to dequeue an item from the queue given by the provided id

  1. Result!(Item, QixException) wait(QueueKey id)
    class Manager
    Result!(Item, QixException)
    wait
  2. Result!(Item, QixException) wait(QueueKey id, Duration timeout)

Parameters

id QueueKey

the queue's id

Return Value

Type: Result!(Item, QixException)

a Result either containing the dequeued item or a QixException if the id does not refer to a queue registered with this manager

Meta