Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disallow post-return functions for async lifts #1976

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

dicej
Copy link
Collaborator

@dicej dicej commented Jan 14, 2025

I can't find where in the spec this is disallowed, but Luke agreed that it should be disallowed, so we'll update the spec to make that explicit. Indeed, we hope to deprecate post-return functions for both sync and async lifts in favor of task.return.

I can't find where in the spec this is disallowed, but Luke agreed that it
_should_ be disallowed, so we'll update the spec to make that explicit.  Indeed,
we hope to deprecate post-return functions for both sync and async lifts in
favor of `task.return`.

Signed-off-by: Joel Dice <[email protected]>
@dicej
Copy link
Collaborator Author

dicej commented Jan 14, 2025

cc @lukewagner

@alexcrichton alexcrichton added this pull request to the merge queue Jan 14, 2025
@lukewagner
Copy link

You're right, at the moment, post-return is simply ignored when async is set, but it should be rejected. I'll make a PR to the spec.

Merged via the queue into bytecodealliance:main with commit 787f633 Jan 14, 2025
30 checks passed
@dicej dicej deleted the no-async-post-return branch January 14, 2025 22:14
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.

3 participants