Re: [PATCH] coroutines : Handle exceptions throw before the first await_resume() [PR95615].

2021-03-04 Thread Nathan Sidwell
On 2/26/21 4:24 PM, Iain Sandoe wrote: Hi, The coroutine body is wrapped in a try-catch block which is responsible for handling any exceptions thrown by the original function body. Originally, the initial suspend expression was outside this, but an amendment to the standard places the

[PATCH] coroutines : Handle exceptions throw before the first await_resume() [PR95615].

2021-02-26 Thread Iain Sandoe
Hi, The coroutine body is wrapped in a try-catch block which is responsible for handling any exceptions thrown by the original function body. Originally, the initial suspend expression was outside this, but an amendment to the standard places the await_resume call inside and everything else