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)
| 361 | return self.put(item, block=False) |
| 362 | |
| 363 | def get_nowait(self): |
| 364 | '''Remove and return an item from the queue without blocking. |
| 365 | |
| 366 | Only get an item if one is immediately available. Otherwise |
| 367 | raise the Empty exception. |
| 368 | ''' |
| 369 | return self.get(block=False) |
| 370 | |
| 371 | def empty(self): |
| 372 | '''Return True if the queue is empty, False otherwise (not reliable!).''' |