Skip to content

[Distributed] After all, a private func may be distributed #40237

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
Nov 18, 2021

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Nov 18, 2021

Turns out they can be distributed after all actually.

Because:

distributed actor X { 

  nonisolated func x() async throws {
    try await self.dist() 
  } 

  distributed private func dist() {}
}

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Nov 18, 2021
@ktoso
Copy link
Contributor Author

ktoso commented Nov 18, 2021

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit f13ef4e into swiftlang:main Nov 18, 2021
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

@ktoso could you please add a test-case from the description to the suite too? :)

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.

3 participants