Closed Hardenn closed 6 years ago
Source link
open override func read(_ entityId: String) -> Model? { guard let entries = try? context.fetch(request(entityId)), !entries.isEmpty, let entry = entries.first else { return nil } ... return entity }
try? context.fetch(request(entityId)) should be wrapped into context.performAndWait.
try? context.fetch(request(entityId))
context.performAndWait
Source link
try? context.fetch(request(entityId))
should be wrapped intocontext.performAndWait
.