Skip to content

Conversation

@DougGregor
Copy link
Member

Introduce a new attribute @actorIndependent that specifies that a
given declaration is considered to be independent of any actor.
Actor-independent declarations do not have access to actor-isolated
state, even when they are declared as instance members of the actor.

On the other hand, actor-independent declarations can be used to
conform to (synchronous) requirements in protocols.

Reject concurrency-only attributes in the parser if the experimental
concurrency mode is not enabled.
@DougGregor
Copy link
Member Author

@swift-ci smoke test

Introduce a new attribute `@actorIndependent` that specifies that a
given declaration is considered to be independent of any actor.
Actor-independent declarations do not have access to actor-isolated
state, even when they are declared as instance members of the actor.

On the other hand, actor-independent declarations can be used to
conform to (synchronous) requirements in protocols.
@DougGregor DougGregor force-pushed the concurrency-actor-independent branch from 2861ef5 to 2762405 Compare September 19, 2020 05:56
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 7b1a6e4 into swiftlang:master Sep 21, 2020
@DougGregor DougGregor deleted the concurrency-actor-independent branch September 21, 2020 16:37
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