()
| 303 | self._sub_socket.setsockopt_string(zmq.SUBSCRIBE, "") |
| 304 | |
| 305 | async def loop(): |
| 306 | while True: |
| 307 | raw = await self._sub_socket.recv() |
| 308 | msg = Message.deserialize(raw) |
| 309 | result = callback(msg) |
| 310 | if asyncio.iscoroutine(result): |
| 311 | await result |
| 312 | |
| 313 | self._task = asyncio.create_task(loop()) |
| 314 |
nothing calls this directly
no test coverage detected