Prompt Debug

Fix Swift Concurrency

Audit async/await usage, actor isolation, and Sendable conformance.

swiftswiftuimacosios
Insert label Concurrency
Prompt

Audit this Swift code for concurrency issues. Find data races, missing @Sendable annotations, Tasks that capture mutable state unsafely, and code that should run on @MainActor but doesn’t. Fix each issue using structured concurrency, actors, or Sendable conformance.

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl