你想拿coroutine干啥,没必要为了coroutine而coroutine,要针对你的应用目标去寻找工具。
【 在 allegro 的大作中提到: 】
: 如果lambda返回一个coroutine,并且这个lambda有capture,那一般会有lifetime issue。
: 当lambda被销毁后,它的capture list也没了。
: 所以当返回的coroutine被resume时候,就触发了use-after-free。
: ...................
--
FROM 221.221.55.*