The Queue Module
The Queue module supplies first-in, first-out (FIFO) queues that support multithread access, with one main class and two exception classes.
Queue |
|
Empty |
|
Full |
|
Methods of Queue Instances
An instance q of class Queue supplies the following methods.
empty |
Returns |
full |
Returns |
get, get_nowait |
When |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access