(self, timeout=None)
| 126 | pass |
| 127 | |
| 128 | def poll(self, timeout=None) -> bool: |
| 129 | try: |
| 130 | # Try to get an item from the queue without blocking |
| 131 | item = self.queue.get(timeout=timeout) |
| 132 | # If successful, put the item back to not alter the state |
| 133 | self.queue.put(item) |
| 134 | return True |
| 135 | except Empty: |
| 136 | # If the queue thread is empty, return False |
| 137 | return False |
| 138 | |
| 139 | |
| 140 | class WorkerCommIpcAddrs(NamedTuple): |