Last active
April 27, 2016 08:39
-
-
Save nikolaykasyanov/6a3b0c28c592226203dbcd0bca925bcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol DBWorker2 { | |
associatedtype S: SequenceType | |
func fetchObjectsFromStorage(type: S.Generator.Element.Type) -> Observable<S.Generator.Element> | |
func saveObjectsToStorage(objects: S) -> Observable<Void> | |
} | |
public class DBWorker2Impl: DBWorker2 { | |
public func fetchObjectsFromStorage(type: Item.Type) -> Observable<Item> { | |
return Observable() | |
} | |
public func saveObjectsToStorage(objects: [Item]) -> Observable<Void> { | |
return Observable() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment