From 5fa5e6060c689378ef893ab9d4ea3cfff6aed30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elvis=20Nu=C3=B1ez?= Date: Sat, 3 Dec 2016 16:00:08 +0100 Subject: [PATCH] Update docs --- Source/Sync/Sync.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Sync/Sync.swift b/Source/Sync/Sync.swift index af12d38f..17b2a10b 100644 --- a/Source/Sync/Sync.swift +++ b/Source/Sync/Sync.swift @@ -216,7 +216,7 @@ public protocol SyncDelegate: class { /// - changes: The dictionary to be used to update or create the object. /// - entityName: The name of the entity. /// - context: The context to be used, make sure that this method gets called in the same thread as the context using `perform` or `performAndWait`. - /// - Returns: The ID of the inserted or updated object. + /// - Returns: The inserted or updated object. If you call this method from a background context, make sure to not use this on the main thread. /// - Throws: Core Data related issues. @discardableResult public class func insertOrUpdate(_ changes: [String : Any], inEntityNamed entityName: String, using context: NSManagedObjectContext) throws -> ResultType { @@ -256,7 +256,7 @@ public protocol SyncDelegate: class { /// - changes: The dictionary to be used to update the object. /// - entityName: The name of the entity. /// - context: The context to be used, make sure that this method gets called in the same thread as the context using `perform` or `performAndWait`. - /// - Returns: The ID of the updated object, if not found it returns nil. + /// - Returns: The updated object, if not found it returns nil. If you call this method from a background context, make sure to not use this on the main thread. /// - Throws: Core Data related issues. @discardableResult public class func update(_ id: Any, with changes: [String : Any], inEntityNamed entityName: String, using context: NSManagedObjectContext) throws -> ResultType? {