Claude
Chat
1d ago
Why does my Swift actor deadlock when I call it from a Task?
I have an actor that owns a WebRTC connection. When I call await conn.send(frame) from inside a Task { } started in the actor itself, the app hangs. …
The hang is semaphore.wait(). It blocks the thread, and the thread it blocks is one of the cooperative pool threads that Swift concurrency needs to deliver the ack that would signal the sem…