Skip to content

[Distributed] Allow isolated any DistributedActor #70906

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 1 commit into from
Jan 15, 2024

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jan 13, 2024

This was mistakenly not allowed; the logic for hopping actors will just work, however we guarded the isolated being allowed only on "is actor" but it should have been checking for "is any actor"

resolves rdar://120938773

@ktoso
Copy link
Contributor Author

ktoso commented Jan 13, 2024

@swift-ci please smoke test

@ktoso ktoso requested a review from DougGregor January 13, 2024 05:59
}

@main struct Main {
static func main() async {
Copy link
Member

Choose a reason for hiding this comment

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

Needs @available(SwiftStdlib 5.1, *) here, I think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems so, fixing

This was mistakenly not allowed; the logic for hopping actors will just
work, however we guarded the isolated being allowed only on "is actor"
but it should have been checking for "is any actor"
@ktoso ktoso force-pushed the wip-existential-da-isolated branch from f377ce4 to dfce2aa Compare January 15, 2024 02:30
@ktoso
Copy link
Contributor Author

ktoso commented Jan 15, 2024

@swift-ci please smoke test

@ktoso ktoso enabled auto-merge (squash) January 15, 2024 02:35
@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Jan 15, 2024
@ktoso ktoso merged commit 13a42f4 into swiftlang:main Jan 15, 2024
@ktoso ktoso deleted the wip-existential-da-isolated branch January 15, 2024 12:19
Catfish-Man pushed a commit to Catfish-Man/swift that referenced this pull request Jan 19, 2024
carlos4242 pushed a commit to carlos4242/swift that referenced this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants