2021年文章: 比物理线程都好用的C++20的协程,在事件驱动代码中的应用解析 大神给出了可以用的例子: 例子代码执行 源码 //https://bbs.huaweicloud.com/blogs/266537 #include <iostream> #