mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-11 21:11:58 +01:00
bypass thread checks depending on location of Field call
This commit is contained in:
@@ -133,7 +133,11 @@ public struct ObjectProxy<O: CoreStoreObject> {
|
||||
let keyPathString = field.keyPath
|
||||
self.getValue = {
|
||||
|
||||
return type(of: field).read(field: field, for: rawObject) as! V
|
||||
return type(of: field).read(
|
||||
field: field,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: true // May be called from NSError logs
|
||||
) as! V
|
||||
}
|
||||
self.setValue = {
|
||||
|
||||
@@ -159,7 +163,11 @@ public struct ObjectProxy<O: CoreStoreObject> {
|
||||
let keyPathString = field.keyPath
|
||||
self.getValue = {
|
||||
|
||||
return type(of: field).read(field: field, for: rawObject) as! V
|
||||
return type(of: field).read(
|
||||
field: field,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: true // May be called from NSError logs
|
||||
) as! V
|
||||
}
|
||||
self.setValue = {
|
||||
|
||||
@@ -192,7 +200,11 @@ public struct ObjectProxy<O: CoreStoreObject> {
|
||||
let keyPathString = field.keyPath
|
||||
self.getValue = {
|
||||
|
||||
return type(of: field).read(field: field, for: rawObject) as! V
|
||||
return type(of: field).read(
|
||||
field: field,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: true // May be called from NSError logs
|
||||
) as! V
|
||||
}
|
||||
self.setValue = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user