Skip to content

Coro: Add a function attribute for resume from call async functlets #9204

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

Conversation

aschwaighofer
Copy link

This change adds a function attribute async_ret for any funclet generated from a async function marked with async_entry that models a return from an async function.

We recognize these continuations by a __swift_async_resume_project_context projection function argument to the suspend function.

rdar://134460666

This change adds a function attribute `async_ret` for any funclet
generated from a async function marked with `async_entry` that models a
return from an async function.

We recognize these continuations by a `__swift_async_resume_project_context`
projection function argument to the suspend function.

rdar://134460666
@aschwaighofer
Copy link
Author

@swift-ci test

@aschwaighofer
Copy link
Author

@swift-ci test llvm

@aschwaighofer aschwaighofer merged commit 80d178d into swiftlang:stable/20230725 Sep 6, 2024
5 checks passed
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