(self, obj, block=True, timeout=None)
| 84 | self._poll = self._reader.poll |
| 85 | |
| 86 | def put(self, obj, block=True, timeout=None): |
| 87 | if self._closed: |
| 88 | raise ValueError(f"Queue {self!r} is closed") |
| 89 | if not self._sem.acquire(block, timeout): |
| 90 | raise Full |
| 91 | |
| 92 | with self._notempty: |
| 93 | if self._thread is None: |
| 94 | self._start_thread() |
| 95 | self._buffer.append(obj) |
| 96 | self._notempty.notify() |
| 97 | |
| 98 | def get(self, block=True, timeout=None): |
| 99 | if self._closed: |
no test coverage detected