fromInfoQ
3 days agoSwift 6.2 Released with Improved Concurrency, Safer Raw-Memory Access, Wasm Support and More
Programs adopting approachable concurrency are single-threaded by default, which is ideal for scripts and UI code, and provide greater resilience for asynchronous code that accesses mutable state by running it on the caller's executor thread. When you want to ensure an async method is run on the concurrent thread pool instead of in the caller's context, you can use the @concurrent annotation. InfoQ previously covered approachable concurrency following its announcement at Apple's WWDC 2025, providing additional detail and context.
Apple