Skip to content

[expr.await] Define 'suspend' as a term of power for coroutines#7378

Open
AlisdairM wants to merge 1 commit into
cplusplus:mainfrom
AlisdairM:defined_suspended_coroutine
Open

[expr.await] Define 'suspend' as a term of power for coroutines#7378
AlisdairM wants to merge 1 commit into
cplusplus:mainfrom
AlisdairM:defined_suspended_coroutine

Conversation

@AlisdairM

@AlisdairM AlisdairM commented Nov 7, 2024

Copy link
Copy Markdown
Contributor

This PR fixes #7377.

Many parts of the standard refer to whether a coroutine is suspended as if it were a term of power, but there is no \defn that defines it as such. This PR places the definition on the only use that I could find where a suspended state was not defined in terms of other suspended states, so may be the transition into suspension. It is likely that folks with a better eye to Core wording will know a better place, that may need a little rewording to sneak in the word 'suspended' to properly define it.

@AlisdairM
AlisdairM force-pushed the defined_suspended_coroutine branch from b7b284a to f59767c Compare February 12, 2025 02:28
@eisenwave eisenwave added the cwg Issue must be reviewed by CWG. label Nov 8, 2025
@eisenwave

Copy link
Copy Markdown
Member

Marking this CWG. See the linked issue for details.

@tkoeppe

tkoeppe commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

(It looks like there is no way to mark a pull request so that closing it (not merging it) also closes linked issue. When we have the CWG issue, we should close both GitHub items.)

@AlisdairM
AlisdairM force-pushed the defined_suspended_coroutine branch from f59767c to dfb3e22 Compare November 14, 2025 14:12
Many parts of the standard refer to whether a coroutine is suspended as if
it were a term of power, but there is no \defn that defines it as such.
Editorial review suggests this commit provides the best location to make
the definition."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cwg Issue must be reviewed by CWG.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is suspended a term of power for coroutines?

3 participants