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

Function recv

flow-python/examples/basis_function/interactive/main.py:34–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 g.close()
33
34 def recv():
35 out = g.output('out')
36 recv_n = 0
37 while True:
38 envelope = out.recv()
39 if envelope is None:
40 break
41 recv_n = envelope.msg
42 assert recv_n == n - 1
43
44 block_on(lambda: join([recv, send]))
45 g.wait()

Callers

nothing calls this directly

Calls 2

outputMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected