Skip to content

[Distributed] Accessor: Add support for generic distributed actors #42013

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

xedin
Copy link
Contributor

@xedin xedin commented Mar 24, 2022

Augment accessor to support generic distributed actor declarations
e.g. distributed actor X<T: Codable>.

Sub-task of #41747 which is going to add tests.

Augment accessor to support generic distributed actor declarations
e.g. `distributed actor X<T: Codable>`.
@xedin xedin requested a review from ktoso March 24, 2022 21:13
@xedin
Copy link
Contributor Author

xedin commented Mar 24, 2022

@swift-ci please smoke test

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Mar 24, 2022
assert(actor);

for (auto *genericParam : actor->getInnermostGenericParamTypes())
genericParams.push_back(genericParam);
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, all "innermost" gives us everything I guess... noted!

@xedin xedin merged commit cee0b4c into swiftlang:main Mar 25, 2022
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