Hacker News new | past | comments | ask | show | jobs | submit login

Coroutines are low-level building blocks for various asynchronous models.

C++23 introduces std::generator which is roughly similar to Python and JavaScript generators, implemented on top of coroutines. If that model fits your application, you don’t need to mess with the coro API directly.




Also plenty of other libs provide a neat API for c++20 coroutines: boost.asio, boost.cobalt, qcoro...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: