merge changes to the main context asynchronously (fixes https://github.com/JohnEstropia/CoreStore/issues/7)

This commit is contained in:
John Rommel Estropia
2015-07-24 08:05:13 +09:00
parent f0161b50ed
commit f85eb2e057
4 changed files with 5 additions and 24 deletions

View File

@@ -83,11 +83,10 @@ internal extension NSManagedObjectContext {
object: rootContext,
closure: { [weak context] (note) -> Void in
context?.performBlockAndWait { () -> Void in
context?.performBlock { () -> Void in
context?.mergeChangesFromContextDidSaveNotification(note)
}
return
}
)