peter-wangxu / persist-queue

A thread-safe disk based persistent queue in Python
BSD 3-Clause "New" or "Revised" License
335 stars 50 forks source link

Add full() API and tests #194

Closed brendan-simon-indt closed 1 year ago

brendan-simon-indt commented 1 year ago

Adds a full() API to complement the empty() API.

The full() API is available in Python3 queue.Queue class and this PR makes persist-queue more consistent with the queue.Queue API.

There doesn't seem to be a notion of a full queue when using database queues. The full() API is provided for consistency and always returns False.