pop

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 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.