Skip to content

[Concurrency] Extend @execution(...) attribute support to closures #79975

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

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 13, 2025

  • Update ClosureAttributeChecker to allow and verify @execution(...) attribute.
  • Update closure effects checker and type inference to account for @execution(...) and the fact that it implies async.

xedin added 2 commits March 12, 2025 17:29
….)` attribute

- Update `ClosureEffectsRequest` to make sure that closure is
marked as `async` when `@execution(...)` attribute is present.

- Update `inferClosureType` to set isolation based on an explicit
`@execution(...)` attribute attached to a closure.
@xedin
Copy link
Contributor Author

xedin commented Mar 13, 2025

@swift-ci please test

Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@xedin xedin merged commit 00af0ee into swiftlang:main Mar 13, 2025
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.

3 participants