Skip to content
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

Add Sendable conformance to some basic SchemaTypes #322

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

bdbergeron
Copy link
Contributor

Changes in Swift 5.10 and Xcode 15.3 improved the complete concurrency checking functionality in preparation for Swift 6.0. When using Apollo in a project with complete concurrency checking enabled, many warnings are surfaced for some of the generated schema types such as Interface, Object, and Union. These types are simple structs with no mutability semantics, so they can adopt Sendable without any further changes or concerns. The same goes for OperationDefinition and OperationDocument types used in generated queries, mutations, and fragments.

@apollo-cla
Copy link

@bdbergeron: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Copy link

netlify bot commented Mar 30, 2024

👷 Deploy request for eclectic-pie-88a2ba pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bc11572

Copy link

netlify bot commented Mar 30, 2024

👷 Deploy request for apollo-ios-docc pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bc11572

@calvincestari
Copy link
Member

This gets us partway to resolving apollographql/apollo-ios#3291.

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @bdbergeron.

@calvincestari calvincestari merged commit bb4e5a4 into apollographql:main Apr 2, 2024
15 checks passed
BobaFetters pushed a commit to apollographql/apollo-ios that referenced this pull request Apr 2, 2024
BobaFetters pushed a commit that referenced this pull request Apr 2, 2024
4851f15b Add Sendable conformance to some basic SchemaTypes (#322)

git-subtree-dir: apollo-ios
git-subtree-split: 4851f15be36e778c4cfd72162c107f2777430354
BobaFetters pushed a commit that referenced this pull request Apr 2, 2024
…SchemaTypes

git-subtree-dir: apollo-ios
git-subtree-mainline: a60b3a4
git-subtree-split: 4851f15be36e778c4cfd72162c107f2777430354
@bdbergeron bdbergeron deleted the sendable branch April 4, 2024 17:39
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.

3 participants