(q)
| 129 | # shouldn't affect performance, but small enough that users trying to kill |
| 130 | # an application shouldn't care. |
| 131 | def queue_get(q): |
| 132 | while True: |
| 133 | try: |
| 134 | return q.get(block=True, timeout=0.1) |
| 135 | except Empty: |
| 136 | pass |
| 137 | |
| 138 | else: |
| 139 |