Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/cobalt
/ await_py_coroutine
Function
await_py_coroutine
example/python.cpp:305–309 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
303
304
305
cobalt::promise<void> await_py_coroutine(py_awaitable aw)
306
{
307
auto res = co_await std::move(aw);
308
printf(
"Python coroutine gave %s\n"
, py::str(res).c_str());
309
}
310
311
312
NB_MODULE(boost_cobalt_example_python, m)
Callers
1
NB_MODULE
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected