C++ coroutines: Constructible awaitable or function returning awaitable?--Raymond Chen
The series continue.
C++ coroutines: Constructible awaitable or function returning awaitable?
By Raymond Chen
From the article:
Last time, we learned how to create simple awaitable objects by creating a structure that implements the await_suspend method (and relies on suspend_always to do the coroutine paperwork for us). We can then construct the awaitable object and then co_await on it...