MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / sink_def

Function sink_def

flow-python/megflow/func_op.py:86–92  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

84
85@_common_def(inputs=["inp"])
86def sink_def(self, func):
87 envelope = self.inp.recv()
88
89 if envelope is None:
90 return
91
92 func(envelope.msg)
93
94
95@_common_def(outputs=["out"])

Callers

nothing calls this directly

Calls 1

recvMethod · 0.45

Tested by

no test coverage detected