Skip to content

[Distributed][TestOnly] PoC using a property wrapper on distributed func param for validation #67043

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
Jul 4, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 30, 2023

Test for how parameter property wrappers can be used to validate distributed func parameters.

Do note that we cannot throw in such position right now, so the only option for such validation would be to fatal error.
We could consider allowing throwing in such positions if it were really necessary perhaps.

rdar://111534426

@ktoso
Copy link
Contributor Author

ktoso commented Jun 30, 2023

@swift-ci please smoke test

@ktoso ktoso requested review from xedin and hborla June 30, 2023 03:14
@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Jun 30, 2023
@ktoso ktoso changed the title [Distributed] PoC using a property wrapper on distributed func param for validation [Distributed][TestOnly] PoC using a property wrapper on distributed func param for validation Jun 30, 2023
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.

LGTM!

@xedin
Copy link
Contributor

xedin commented Jul 3, 2023

Let's run full suite before we merge to make sure that this works on iOS and other simulators.

@xedin
Copy link
Contributor

xedin commented Jul 3, 2023

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Jul 3, 2023

Yeah, gotta keep running full suites on distributed stuff I guess. Thank you for review!

@ktoso ktoso merged commit 5fd22b0 into swiftlang:main Jul 4, 2023
@ktoso ktoso deleted the wip-poc-validate-distributed-param branch July 4, 2023 03:04
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