#How to prevent coroutine object from self-destructing?
9 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
return std::suspend_always from the promise type's final_suspend()?
I managed to fix it, but other question, do you have to call coroutine_handle.destroy() manually, or is it called automatically at some point?
iirc if the final_suspend() does not cause the coroutine to yield, then it is completely destroyed, otherwise you need to call destroy() on the handle from the outside
ok
This question is being automatically marked as stale.
If your question has been answered, run !solved.
If your question is not answered feel free to bump the post or re-ask.
Take a look at !howto ask for tips on improving your question.
!solved