Skip to content

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 force-pushed the v2/sendable-code-gen branch from c977ff2 to 234dc7f Compare November 13, 2024 18:48
@glbrntt glbrntt enabled auto-merge (squash) November 13, 2024 18:56
@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
@rnro rnro mentioned this pull request Sep 22, 2025
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