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

Make structured Swift representation types Sendable #2115

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 13, 2024

Motivation:

The structured Swift types aren't marked as Sendable. This means that defining a 'static let' isn't possible, and a static computed property must be used instead. This is fine, just verbose.

Modifications:

  • Make all structured swift representation types 'Sendable'

Result:

Can use 'static let' with structured Swift types

@glbrntt glbrntt added the semver/minor Adds new public API. label Nov 13, 2024
@glbrntt glbrntt requested a review from gjcairo November 13, 2024 18:45
Motivation:

The structured Swift types aren't marked as Sendable. This means that
defining a 'static let' isn't possible, and a static computed property
must be used instead. This is fine, just verbose.

Modifications:

- Make all structured swift representation types 'Sendable'

Result:

Can use 'static let' with structured Swift types
@glbrntt glbrntt merged commit 02fa77f into grpc:main Nov 13, 2024
44 of 45 checks passed
@glbrntt glbrntt deleted the v2/sendable-code-gen branch November 14, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants