Skip to content

Instantly share code, notes, and snippets.

@Yerazhas
Created February 4, 2020 15:50
Show Gist options
  • Save Yerazhas/5789d15acc6a8457df04552043a31f87 to your computer and use it in GitHub Desktop.
Save Yerazhas/5789d15acc6a8457df04552043a31f87 to your computer and use it in GitHub Desktop.
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