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

Function printer

flow-python/examples/basis_function/future/op.py:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14@source_def()
15def printer():
16 (fut1, waker1) = create_future()
17 yield waker1
18 (fut2, waker2) = create_future()
19 yield waker2
20
21 [r1, r2] = join([lambda: fut1.wait(), lambda: fut2.wait()])
22 print('printer: ', r1, r2)
23

Callers

nothing calls this directly

Calls 3

create_futureFunction · 0.85
joinFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected