MCPcopy Create free account
hub / github.com/boostorg/cobalt / use_cpp

Function use_cpp

example/python.py:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 return "foobar"
8
9async def use_cpp():
10 #test awaiting C++ primitives
11
12 async for item in boost_async_example_python.test_generator():
13 print("Cpp generator", item)
14
15 print("Cpp promise gave us", await boost_async_example_python.test_promise())
16
17 # having C++ await our python coros
18 await boost_async_example_python.test_py_promise(my_cor())
19
20
21asyncio.run(use_cpp())

Callers 1

python.pyFile · 0.85

Calls 1

my_corFunction · 0.85

Tested by

no test coverage detected