mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-21 16:01:31 +01:00
tidy up (WIP: queue check for NSManagedObjectContext property updates)
This commit is contained in:
1 parent
762b877879
commit
3e601c1328
4 files changed
+39
-25
No files matched your search
@@ -55,6 +55,15 @@ internal extension NSManagedObjectContext {
|
||||
}
|
||||
}
|
||||
|
||||
internal func isRunningInAllowedQueue() -> Bool {
|
||||
|
||||
guard let parentTransaction = self.parentTransaction else {
|
||||
|
||||
return false
|
||||
}
|
||||
return parentTransaction.isRunningInAllowedQueue()
|
||||
}
|
||||
|
||||
internal func temporaryContextInTransactionWithConcurrencyType(concurrencyType: NSManagedObjectContextConcurrencyType) -> NSManagedObjectContext {
|
||||
|
||||
let context = NSManagedObjectContext(concurrencyType: concurrencyType)
|
||||
|
||||
Reference in new issue
Block a user