Hacker News new | ask | show | jobs
by lavalida 408 days ago
Boost.asio and Boost.cobalt both allow you to do this. You could even implement the coroutine traits yourself if you don't want to use these libraries.