Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I find the article useful from a "how do C++20 coroutines work" perspective, but these sorts of tutorials don't really help you use coroutines in anything beyond a toy program.

I personally found coroutines are useful only in conjunction with a library wrapping OS system calls to interact with sockets (epoll/iouring on Linux, for instance), providing an event loop, and handles the complexity of multithreading. The most fleshed out one out there is probably boost asio.



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

Search: