Remove all objects from a queue partition.
Delete the ephemeral queue. Only usable with Queue.ephemeral()
.
Remove and return the next object from the queue.
By default, this will wait until at least one item is present in the queue.
If timeout
is set, raises QueueEmptyError
if no items are available
within that timeout in milliseconds.
Remove and return up to n
objects from the queue.
By default, this will wait until at least one item is present in the queue.
If timeout
is set, raises QueueEmptyError
if no items are available
within that timeout in milliseconds.
Iterate through items in a queue without mutation.
Return the number of objects in the queue.
Add an item to the end of the queue.
If the queue is full, this will retry with exponential backoff until the
provided timeout
is reached, or indefinitely if timeout
is not set.
Raises QueueFullError
if the queue is still full after the timeout.
Add several items to the end of the queue.
If the queue is full, this will retry with exponential backoff until the
provided timeout
is reached, or indefinitely if timeout
is not set.
Raises QueueFullError
if the queue is still full after the timeout.
Static
deleteStatic
ephemeralCreate a nameless, temporary queue.
You will need to call closeEphemeral()
to delete the queue.
Static
lookup
Distributed, FIFO queue for data flow in Modal apps.