(self, block: bool = True, timeout: Optional[float] = None)
| 292 | raise Empty() from err |
| 293 | |
| 294 | def get(self, block: bool = True, timeout: Optional[float] = None) -> _T: |
| 295 | if not block: |
| 296 | return self.get_nowait() |
| 297 | |
| 298 | try: |
| 299 | if timeout is not None: |
| 300 | return await_(asyncio.wait_for(self._queue.get(), timeout)) |
| 301 | else: |
| 302 | return await_(self._queue.get()) |
| 303 | except (asyncio.QueueEmpty, asyncio.TimeoutError) as err: |
| 304 | raise Empty() from err |
nothing calls this directly
no test coverage detected