(self, item)
| 11 | self.lock = asyncio.Lock() |
| 12 | |
| 13 | async def put(self, item): |
| 14 | async with self.lock: |
| 15 | if item not in self.set: |
| 16 | self.set.add(item) |
| 17 | await self.queue.put(item) |
| 18 | else: |
| 19 | logger.debug(f"Item {item.__hash__()} already in queue.") |
| 20 | |
| 21 | async def get(self): |
| 22 | item = await self.queue.get() |