system.queues.list_queues module¶
In-memory list-backed queue implementation.
- class system.queues.list_queues.ListQueue[source]¶
Bases:
ReadWriteQueue,Iterator,GenericListQueue is an in-memory read-write queue that uses a list as both buffer and backing storage.
- flush() int[source]¶
See
WriteQueue.flush().No-op for this in-memory queue: there is no backing file to write to, so nothing is written and 0 is always returned.
- pop() ObjectType[source]¶
Pops the first element from the queue.
- Returns:
The first element from the queue.