MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / loop

Method loop

fastdeploy/inter_communicator/fmq.py:305–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

recvMethod · 0.80
deserializeMethod · 0.80

Tested by

no test coverage detected