Merge branch 'develop' into corestore2_develop

Conflicts:
	CoreStore.podspec
	CoreStore/Info.plist
This commit is contained in:
John Rommel Estropia
2016-02-26 01:51:35 +09:00
4 changed files with 60 additions and 6 deletions

View File

@@ -55,6 +55,18 @@ public final class UnsafeDataTransaction: BaseDataTransaction {
}
}
/**
Saves the transaction changes and waits for completion synchronously. For a `UnsafeDataTransaction`, multiple commits are allowed, although it is the developer's responsibility to ensure a reasonable leeway to prevent blocking the main thread.
- returns: a `SaveResult` containing the success or failure information
*/
public func commitAndWait() -> SaveResult {
let result = self.context.saveSynchronously()
self.result = result
return result
}
/**
Rolls back the transaction.
*/