Remove and return an item from the queue without blocking. Only get an item if one is immediately available. Otherwise raise the Empty exception.
(self)
| 191 | return self.put(item, block=False) |
| 192 | |
| 193 | def get_nowait(self): |
| 194 | '''Remove and return an item from the queue without blocking. |
| 195 | |
| 196 | Only get an item if one is immediately available. Otherwise |
| 197 | raise the Empty exception. |
| 198 | ''' |
| 199 | return self.get(block=False) |
| 200 | |
| 201 | # Override these methods to implement other queue organizations |
| 202 | # (e.g. stack or priority queue). |