fix(ios): satisfy Sendable in bridge timeout

main
Peter Steinberger 2025-12-14 03:00:40 +00:00
parent 507f5623f4
commit 7b1163f75c
1 changed files with 6 additions and 6 deletions

View File

@ -310,7 +310,7 @@ actor BridgeSession {
}
}
private static func withTimeout<T>(
private static func withTimeout<T: Sendable>(
seconds: Double,
operation: @escaping @Sendable () async throws -> T) async throws -> T
{
@ -354,7 +354,7 @@ actor BridgeSession {
_ stateStream: AsyncStream<NWConnection.State>,
timeoutSeconds: Double) async throws
{
try await Self.withTimeout(seconds: timeoutSeconds) {
try await self.withTimeout(seconds: timeoutSeconds) {
for await state in stateStream {
switch state {
case .ready: