3 ms·
Coroutines are low-level building blocks for various asynchronous models. C++23 introduces std::generator which is roughly similar to Python and JavaScript gen
by pavlov 3y ago
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.
- jcelerier 3y agoAlso plenty of other libs provide a neat API for c++20 coroutines: boost.asio, boost.cobalt, qcoro...