boostorg / cobalt

Coroutines for C++20 & asio
https://www.boost.org/doc/libs/master/libs/cobalt/doc/html/index.html
230 stars 25 forks source link

Add generator support to the python example. #205

Open triplejam opened 1 month ago

triplejam commented 1 month ago

Very cool library. I was thinking it might be helpful if python generators could be called from the C++ side. It's obviously more efficient the other way around. But say you have a factory function you want to call from a detached awaitable. I don't know enough about low-level python to do it myself.