Talk:cpp/coroutine/coroutine handle/resume

"The behavior is undefined if the resumption is needed, and *this does not refer to suspended coroutine or the coroutine is suspended at its final suspend point."

What does "is needed" mean?

I feel like this should be split up:

The behavior is undefined if *this does not refer to a suspended coroutine. The behavior is undefined if *this refers to a coroutine suspended at its final suspension point.

Should these points be related to the done returning false? How does that correspond to resumption "being needed" in the first sentence?

86.141.179.164 06:27, 11 January 2021 (PST)


 * Removed "is needed". --Fruderica (talk) 06:51, 12 January 2021 (PST)