Skip to content

Commit 80ee688

Browse files
committed
Add back @unchecked for types that effectively are sendable
1 parent e6b298e commit 80ee688

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Sources/LiveKit/Extensions/Sendable.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ extension LKRTCCallbackLogger: @unchecked Swift.Sendable {}
5151
#if swift(<6.2)
5252
extension Dictionary: Swift.Sendable where Key: Sendable, Value: Sendable {}
5353
#endif
54+
55+
// MARK: AV
56+
57+
extension AVCaptureDevice: @unchecked Swift.Sendable {}
58+
extension AVCaptureDevice.Format: @unchecked Swift.Sendable {}

Sources/LiveKit/Types/Options/CameraCaptureOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class CameraCaptureOptions: NSObject, VideoCaptureOptions, Sendable
2525
public let deviceType: AVCaptureDevice.DeviceType?
2626
#endif
2727

28-
/// Exact devce to use.
28+
/// Exact device to use.
2929
@objc
3030
public let device: AVCaptureDevice?
3131

0 commit comments

Comments
 (0)