pop
Removes and retrieves messages from the specified queue.
Return
A Result containing a list of messages removed from the queue.
Parameters
queue
The name of the queue from which messages will be popped.
quantity
The number of messages to pop from the queue. Defaults to 1.
context(db: QueryExecutor)
suspend fun pop(queue: String, quantity: Int = 1): Result<List<Message>>(source)
suspend fun pop(queue: String, quantity: Int = 1): Result<List<Message>>(source)
Removes and retrieves messages from the specified queue.
Return
A Result containing a list of messages retrieved from the queue.
Parameters
queue
The name of the queue from which messages are to be popped.
quantity
The number of messages to pop from the queue; defaults to 1 if not specified.