fix(swift): align async helper callsites across iOS and macOS

This commit is contained in:
Peter Steinberger
2026-03-03 03:07:37 +00:00
parent 5cba9a6bab
commit 04a8f97c57
11 changed files with 35 additions and 32 deletions

View File

@@ -39,11 +39,12 @@ final class MacNodeLocationService: NSObject, CLLocationManagerDelegate, Locatio
desiredAccuracy: desiredAccuracy,
maxAgeMs: maxAgeMs,
timeoutMs: timeoutMs,
request: { try await self.requestLocationOnce() }) { timeoutMs, operation in
request: { try await self.requestLocationOnce() },
withTimeout: { timeoutMs, operation in
try await self.withTimeout(timeoutMs: timeoutMs) {
try await operation()
}
}
})
}
private func withTimeout<T: Sendable>(