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

Method __init__

fastdeploy/inter_communicator/fmq.py:277–283  ·  view source on GitHub ↗
(self, context, name: str)

Source from the content-addressed store, hash-verified

275
276class Topic(BaseComponent):
277 def __init__(self, context, name: str):
278 endpoint = EndpointManager.get_endpoint(name)
279 super().__init__(context, endpoint)
280 self.name = name
281 self._pub_socket = None
282 self._sub_socket = None
283 self._task = None
284
285 async def pub(self, data: Any):
286 # Publish a message

Callers

nothing calls this directly

Calls 2

get_endpointMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected