Skip to content

Conversation

@TimWhiting
Copy link
Collaborator

@TimWhiting TimWhiting commented Aug 7, 2025

#780 brought this up.

The parameter/return value for rcontext.finalize does not make much sense in practice. raw ctl's rcontext is intended to escape the handler's return context, and the required parameter makes it awkward to implement cooperative asymmetric coroutines.

The other place Finalize is used is to ensure finalization if ctl clauses do not resume, in which case the return value is important to keep. Instead of creating a new variant of FinalizeRaw : resume-context, this PR just casts the return type to ().

Obviously there are other potential approaches, this probably needs to be discussed more, and a test would need to be added.

@TimWhiting
Copy link
Collaborator Author

Related #510

@TimWhiting TimWhiting force-pushed the dev branch 3 times, most recently from 2c83d90 to 00399ab Compare August 13, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant