Tag

Concurrency

16 posts

20264 posts

  1. CDE: An Attempt to Make Core Data Feel More Like Modern Swift

    In my previous article, I discussed the current reality of Core Data in today's projects: it hasn't disappeared, and it still has unique value, but the disconnect between it and modern Swift projects is becoming increasingly apparent. In this article, I will introduce my experimental project Core Data Evolution, exploring whether we can make Core Data continue to exist in modern Swift projects in a more natural way?

  2. isolated(any) and #isolation: Letting Swift Closures Automatically Inherit Isolation

    While Swift 6.2's Default Actor Isolation simplifies concurrency, the compiler sometimes fails to infer closure execution contexts, leading to unexpected errors. This article explores a practical solution using @isolated(any) and the #isolation macro to achieve function isolation inheritance. Learn how to eliminate redundant `@MainActor` annotations while ensuring strict compile-time safety.

20255 posts

20242 posts

20231 posts

  1. Concurrent Programming in SwiftData

    Explore SwiftData's elegant concurrency mechanism, a successor to Core Data. Learn how it uses serial queues and Actors for safe, efficient multi-threading. Discover best practices for data access and modification.

20221 posts

20213 posts