WIP: CSSetupResult

This commit is contained in:
John Rommel Estropia
2016-03-30 01:55:06 +09:00
parent e25e198bf8
commit 09d844f5df
9 changed files with 287 additions and 43 deletions

View File

@@ -48,7 +48,7 @@ public extension CSDataStack {
// - parameter completion: the closure to be executed on the main queue when the process completes, either due to success or failure. The closure's `SetupResult` argument indicates the result. This closure is NOT executed if an error is thrown, but will be executed with a `.Failure` result if an error occurs asynchronously.
// - returns: an `NSProgress` instance if a migration has started, or `nil` is no migrations are required
// */
// public func addStorage(storage: StorageInterface, completion: (SetupResult<T>) -> Void) throws -> NSProgress? {
// public func addInMemoryStorage(storage: CSInMemoryStore, completion: (CSSetupResult) -> Void, error: NSErrorPointer) -> NSProgress? {
//
// self.coordinator.performAsynchronously {
//
@@ -91,7 +91,7 @@ public extension CSDataStack {
//
// return nil
// }
//
//
// /**
// Asynchronously adds a `LocalStorage` with default settings to the stack. Migrations are also initiated by default.
// ```