mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
CoreStore seems breaking Core Data multi thread requirements #416
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kukushi on GitHub (Jul 26, 2023).
After adding
-com.apple.CoreData.ConcurrencyDebug 1in launch arguments, playing around the demo, and soon the Xcode will stop atCoreData +[NSManagedObjectContext __Multithreading_Violation_AllThatIsLeftToUsIsHonor__]:.It seems that some methods don't follow the
Managed objects retrieved from a context are bound to the same queue that the context is bound to.rule mentioned in apple's doc.I wonder if it's safe to ignore that assertion or just an unintended result.
@JohnEstropia commented on GitHub (Jul 27, 2023):
@kukushi Hi, this is safe to ignore because CoreStore manages context queueing for you.
See the Installation section of the README
To elaborate on what's happening here, this queue that you see an assertion being raised from is actually executed in the same thread that the
NSManagedContextqueue belongs to.@kukushi commented on GitHub (Jul 29, 2023):
Got it. Thanks for your quick response!