Result
public enum Result<T>
The Result contains the success or failure information for a completed transaction
-
Result<T>.successindicates that the transaction succeeded, either because the save succeeded or because there were no changes to save. The associateduserInfois the value returned from the transaction closure.Declaration
Swift
case success(userInfo: T) -
Result<T>.failureindicates that the transaction either failed or was cancelled. The associated object for this value is aCoreStoreErrorenum value.Declaration
Swift
case failure(error: CoreStoreError) -
Returns
trueif the result indicates.success,falseif the result is.failure.Declaration
Swift
public var boolValue: Bool { get }
View on GitHub
Result Enumeration Reference