Created
February 4, 2020 15:50
-
-
Save Yerazhas/5789d15acc6a8457df04552043a31f87 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
protocol CFParser { | |
func parse<T: Decodable>(response: Data) -> Result<T, Error> | |
} | |
class CFParserImpl: CFParser { | |
func parse<T>(response: Data) -> Result<T, Error> where T : Decodable { | |
return .failure(MessageError.noData) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment