generated from StanfordBDHG/SwiftPackageTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inline documentation and concurrency warnings with Xcode beta 3
- Loading branch information
Showing
12 changed files
with
54 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,10 +383,12 @@ extension PairedDevices { | |
await device.connect() | ||
|
||
let id = device.id | ||
async let _ = withTimeout(of: timeout) { @MainActor in | ||
ongoingPairings.removeValue(forKey: id)?.signalTimeout() | ||
let timeoutHandler = { @MainActor in | ||
_ = self.ongoingPairings.removeValue(forKey: id)?.signalTimeout() | ||
} | ||
|
||
async let _ = withTimeout(of: timeout, perform: timeoutHandler) | ||
Check warning on line 390 in Sources/SpeziDevices/PairedDevices.swift GitHub Actions / CodeQL / Test using xcodebuild or run fastlane
Check warning on line 390 in Sources/SpeziDevices/PairedDevices.swift GitHub Actions / Build and Test iOS / Test using xcodebuild or run fastlane
Check warning on line 390 in Sources/SpeziDevices/PairedDevices.swift GitHub Actions / Build and Test Swift Package iOS / Test using xcodebuild or run fastlane
|
||
|
||
try await withTaskCancellationHandler { | ||
try await withCheckedThrowingContinuation { continuation in | ||
ongoingPairings[id] = PairingContinuation(continuation) | ||
|
@@ -671,7 +673,7 @@ extension Bluetooth { | |
|
||
extension PairableDevice { | ||
fileprivate static func retrieveDevice(from bluetooth: Bluetooth, with id: UUID) async -> Self? { | ||
await bluetooth.retrieveDevice(for: id) | ||
await bluetooth.retrieveDevice(for: id, as: Self.self) | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters