(self, queue: asyncio.Queue[dict[str, Any]])
| 28 | return queue |
| 29 | |
| 30 | async def unsubscribe(self, queue: asyncio.Queue[dict[str, Any]]) -> None: |
| 31 | async with self._lock: |
| 32 | self._subscribers.discard(queue) |
| 33 | |
| 34 | def publish(self, event: dict[str, Any]) -> None: |
| 35 | """Non-blocking fan-out. Safe to call from any async context.""" |