Skip to content

Conversation

mimischi
Copy link
Member

Unsafe pointers are no longer Sendable starting with Swift 5.10, while a warning in earlier versions. This PR introduces SendableOpaquePointer to wrap OpaquePointer and marks it as @unchecked Sendable.

Resolves #159

@mimischi
Copy link
Member Author

#169 resolves this by adding @unchecked directly to both RDKafkaClient and RDKafkaTopicHandles.

@mimischi
Copy link
Member Author

mimischi commented Nov 12, 2024

Doesn't look like checks are starting. Related to us being mid-migration to GitHub Actions in #175?

[Unsafe pointers are no longer `Sendable`](swiftlang/swift#70396 (comment)) starting with Swift 5.10, while a warning in
earlier versions. This PR introduces `SendableOpaquePointer` to wrap `OpaquePointer` and
marks it as `@unchecked Sendable`.

Resolves swift-server#159
@mimischi mimischi force-pushed the issue-159-make-opaquepointer-sendable branch from f84757b to 91155a1 Compare November 13, 2024 11:31
@FranzBusch FranzBusch enabled auto-merge (squash) November 13, 2024 16:03
@FranzBusch FranzBusch added the 🔨 semver/patch No public API change. label Nov 13, 2024
@FranzBusch FranzBusch merged commit de10ce1 into swift-server:main Nov 13, 2024
23 of 24 checks passed
@mimischi mimischi deleted the issue-159-make-opaquepointer-sendable branch November 13, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrap Sendability warning for OpaquePointer
3 participants