Closed tristanseifert closed 8 years ago
The only issue I can see with this patch, is that if the context is NSMainQueueConcurrencyType
, and we're executing this method on the main thread, it could potentially deadlock. Let me have a quick play and see if I can come up with a workaround.
OK, I've addressed this in 8069330e6fdf7719cf9b998ef3508f0694a314b4. Thanks for the PR.
When debugging an application with different contexts, using the
-com.apple.CoreData.ConcurrencyDebug 1
argument to spot CoreData concurrency problems, the debugger sometimes breaks intoMR_workingName
due to a CoreData concurrency error.This fix ensures that the properties are accessed only on the queue that is used by the context.