So what’s the way to use #CoreData in the context of #Swift concurrency? Looks like I won’t be migrating to SwiftData anytime soon and I need tips

@RosaCtrl there is nothing specific to swift concurrency. Even awaiting to get objects from the main context and using them is not allowed.
You’ll need a separate context and dispatch with performAndWait. All operations including using the objects can only are confined to the contexts queue.

I recommend enabling -com.apple.CoreData.ConcurrencyDebug 1 which enables stricter concurrency checks.

@RosaCtrl if you have an actor, each actor should have its own context