Swift 6.2 actor reentrancy bugs patterns and fixes
This article examines five common actor reentrancy bugs in Swift 6 concurrency codebases and provides Swift 6.2 fixes for each pattern. The author explains that because actor methods are not atomic across suspension points, race conditions can occur under real-world load, leading to stale state reads, duplicate concurrent work, flawed check-then-act logic, missing cancellation handling, and unnecessary main actor hops. Open article →