Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trupin/1c68332458e313f33639ea1f6a746b64 to your computer and use it in GitHub Desktop.
Save trupin/1c68332458e313f33639ea1f6a746b64 to your computer and use it in GitHub Desktop.
protocol ClientProtocol {
/// Performs a request, retrieves a response from the server and convert it to `Model`
func get<Model>(path: String, completion: @escaping (Result<Model, ClientError>) -> Void)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment