From 1efd43d5c5f3861ea042d622cd28efa0555974bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82az=CC=87ej=20Pankowski?= <86720177+pblazej@users.noreply.github.com> Date: Wed, 16 Sep 2026 14:19:06 +0200 Subject: [PATCH] Restore explicit self in the AsyncCompleter timeout block #1124 rewrote this line from `self._entries[entryId]` to an implicit `_entries`. SPM builds in Swift 6 language mode, which accepts implicit self in a nested closure after `[weak self]` / `guard let self`; the podspec pins `swift_versions = ["5.9"]`, and Swift 5 mode rejects it. CocoaPods Lint has been red on every run since. Co-Authored-By: Claude Opus 5 (1M context) --- Sources/LiveKit/Support/Async/AsyncCompleter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/LiveKit/Support/Async/AsyncCompleter.swift b/Sources/LiveKit/Support/Async/AsyncCompleter.swift index 5c2770d45..401848504 100644 --- a/Sources/LiveKit/Support/Async/AsyncCompleter.swift +++ b/Sources/LiveKit/Support/Async/AsyncCompleter.swift @@ -186,7 +186,7 @@ final class AsyncCompleter: @unchecked Sendable, Loggable { let timeoutBlock = DispatchWorkItem { [weak self] in guard let self else { return } log("\(label) id: \(entryId) timed out") - _lock.sync { _entries.removeValue(forKey: entryId) }?.timeout() + _lock.sync { self._entries.removeValue(forKey: entryId) }?.timeout() } _lock.sync {