A queue of shared data.
More...
|
def | __init__ (self) |
| Constructs an empty queue of shared values.
|
|
def | put (self, item) |
| Adds an item to the end of the queue. More...
|
|
def | get (self) |
| Remove the first item from the front of the queue. More...
|
|
def | num_in (self) |
| Find the number of items in the queue. More...
|
|
def | __init__ (self) |
| Constructs an empty queue of shared values.
|
|
def | put (self, item) |
| Adds an item to the end of the queue. More...
|
|
def | get (self) |
| Remove the first item from the front of the queue. More...
|
|
def | num_in (self) |
| Find the number of items in the queue. More...
|
|
A queue of shared data.
Values can be accessed with placed into queue with put() or removed from the queue with get(). Check if there are items in the queue with num_in() before using get().
◆ get() [1/2]
def shares.Queue.get |
( |
|
self | ) |
|
Remove the first item from the front of the queue.
- Returns
- The value of the item removed
◆ get() [2/2]
def shares.Queue.get |
( |
|
self | ) |
|
Remove the first item from the front of the queue.
- Returns
- The value of the item removed
◆ num_in() [1/2]
def shares.Queue.num_in |
( |
|
self | ) |
|
Find the number of items in the queue.
Call before get().
- Returns
- The number of items in the queue
◆ num_in() [2/2]
def shares.Queue.num_in |
( |
|
self | ) |
|
Find the number of items in the queue.
Call before get().
- Returns
- The number of items in the queue
◆ put() [1/2]
def shares.Queue.put |
( |
|
self, |
|
|
|
item |
|
) |
| |
Adds an item to the end of the queue.
- Parameters
-
item | The new item to append to the queue. |
◆ put() [2/2]
def shares.Queue.put |
( |
|
self, |
|
|
|
item |
|
) |
| |
Adds an item to the end of the queue.
- Parameters
-
item | The new item to append to the queue. |
The documentation for this class was generated from the following files: