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

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

No files matched your search

@@ -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
}
)