Skip to content

Support actor isolation for property wrappers #36291

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

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Mar 4, 2021

Property wrappers can provide global actor isolation based on the
property wrapper type itself (which affects the backing property),
wrappedValue (which affects the wrapped property), and
projectedValue (which affects the $ property). This allows us to
express, e.g., property wrappers that require accesses to occur on a
particular global actor.

Thanks to @hborla for walking through this with me.

More in support of rdar://74241687

@DougGregor DougGregor requested a review from hborla March 4, 2021 20:34
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

Property wrappers can provide global actor isolation based on the
property wrapper type itself (which affects the backing property),
`wrappedValue` (which affects the wrapped property), and
`projectedValue` (which affects the $ property). This allows us to
express, e.g., property wrappers that require accesses to occur on a
particular global actor.
@DougGregor DougGregor force-pushed the global-actors-and-property-wrappers branch from a965d9d to 2b6bda2 Compare March 5, 2021 08:25
@DougGregor
Copy link
Member Author

Bah, updated for diagnostics changes merged recently

@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor
Copy link
Member Author

@swift-ci please build toolchain

@swift-ci
Copy link
Contributor

swift-ci commented Mar 5, 2021

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - 2b6bda2

Install command
tar zxf swift-PR-36291-565-ubuntu16.04.tar.gz
More info

@DougGregor
Copy link
Member Author

@swift-ci please smoke test macOS

@DougGregor
Copy link
Member Author

@swift-ci please build toolchain macOS

@DougGregor DougGregor merged commit 7d531f1 into swiftlang:main Mar 5, 2021
@DougGregor DougGregor deleted the global-actors-and-property-wrappers branch March 5, 2021 20:06
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