C++ coroutines: What happens if an exception occurs in my return_value?--Raymond Chen
The series continue.
C++ coroutines: What happens if an exception occurs in my return_value?
by Raymond Chen
From the article:
When I introduced a basic implementation of a promise type, I noted that the return_value method or return_void method is called when the coroutine performs a co_return. But what happens if the return_value or return_void method raises an exception?