Skip to content

Conversation

@dfed
Copy link
Contributor

@dfed dfed commented Nov 20, 2025

LiveKit currently marks multiple types that are not thread-safe as being Sendable. These extensions mean that consumer's applications also treat these types as Sendable, which can lead to thread-safety bugs.

This PR removes the Sendable extensions without adding new warnings. This is accomplished by utilizing internal wrapper types that are marked as @unchecked Sendable.

@dfed dfed marked this pull request as ready for review November 20, 2025 19:34
@hiroshihorie hiroshihorie requested a review from pblazej November 20, 2025 20:29
@pblazej
Copy link
Contributor

pblazej commented Nov 24, 2025

Thank you for noticing and removing that! Especially, CVPixelBuffer thing was not worth it. Left a minor comment.

Copy link
Contributor

@pblazej pblazej Nov 25, 2025

Choose a reason for hiding this comment

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

let's move it to Support maybe

@pblazej pblazej merged commit 31fd522 into livekit:main Nov 25, 2025
25 checks passed
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.

2 participants