Return True if the queue is empty, False otherwise (not reliable!).
(self)
| 120 | self._count.wait(block, timeout) |
| 121 | |
| 122 | def empty(self): |
| 123 | """Return True if the queue is empty, False otherwise (not reliable!).""" |
| 124 | return len(self._queue) == 0 |
| 125 | |
| 126 | def qsize(self): |
| 127 | """Return the approximate size of the queue (not reliable!).""" |