fix compiler errors

This commit is contained in:
John Estropia
2019-01-31 16:50:43 +09:00
parent 9239370793
commit 41902fee2e
76 changed files with 140 additions and 151 deletions

View File

@@ -29,7 +29,7 @@ import CoreData
// MARK: - DataStack
public extension DataStack {
extension DataStack {
/**
Performs a transaction asynchronously where `NSManagedObject` or `CoreStoreObject` creates, updates, and deletes can be made. The changes are commited automatically after the `task` closure returns. On success, the value returned from closure will be the wrapped as `.success(userInfo: T)` in the `completion`'s `Result<T>`. Any errors thrown from inside the `task` will be reported as `.failure(error: CoreStoreError)`. To cancel/rollback changes, call `try transaction.cancel()`, which throws a `CoreStoreError.userCancelled`.