MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / test

Function test

src/7/inlining_callback_functions/example.py:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40@inlined_async
41def test():
42 r = yield Async(add, (2, 3))
43 print(r)
44 r = yield Async(add, ('hello', 'world'))
45 print(r)
46 for n in range(10):
47 r = yield Async(add, (n, n))
48 print(r)
49 print('Goodbye')
50
51if __name__ == '__main__':
52 # Simple test

Callers 1

example.pyFile · 0.70

Calls 1

AsyncClass · 0.85

Tested by

no test coverage detected