Skip to content

Commit

Permalink
Fix Sendable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 15, 2024
1 parent 38225c4 commit a5e34a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/DarwinGATT/DarwinPeripheral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public final class DarwinPeripheral: PeripheralManager, @unchecked Sendable {
// MARK: - Properties

/// Logging
public var log: ((String) -> ())?
public var log: (@Sendable (String) -> ())?

public let options: Options

Expand Down
2 changes: 1 addition & 1 deletion Tests/GATTTests/TestHostController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
import Bluetooth
import BluetoothHCI

final class TestHostController: BluetoothHostControllerInterface {
final class TestHostController: BluetoothHostControllerInterface, @unchecked Sendable {

typealias Data = Foundation.Data

Expand Down

0 comments on commit a5e34a0

Please sign in to comment.