Skip to content

Commit 6405e83

Browse files
authored
Core Data Concurrency update (#151)
* Refactor PersistentRepository to perform all Core Data calls in performAndWaitThrowing - Add NSManagedObjectContext extension to handle to capture any thrown error and return the result - Update public Repository methods to use backgroundContext.performAndWaitThrowing - Move fetch/delete logic into private _locked helper - Remove direct off-queue fetch/save calls to fix concurrency rule violations - Add doc comments * Add Test coverage - Add NSManagedObjectContextExtensionTests - Expand BacktraceDatabaseTests to add concurrent read/write operations, maxRecordCount and retry count Tests
1 parent 9ec1798 commit 6405e83

File tree

5 files changed

+597
-311
lines changed

5 files changed

+597
-311
lines changed

0 commit comments

Comments
 (0)