3 comments

[ 3.1 ms ] story [ 14.8 ms ] thread
Having used JavaScript and C++ promises, the thing I find easiest is coroutines, and they've been accepted for C++17. In the meantime Boost Coroutine together with ASIO makes for very readable code.