Skip to content

Instantly share code, notes, and snippets.

@JeremyXue77
Created May 9, 2019 06:45
Show Gist options
  • Select an option

  • Save JeremyXue77/7673e4fc086aa4bccd10e7832b570f46 to your computer and use it in GitHub Desktop.

Select an option

Save JeremyXue77/7673e4fc086aa4bccd10e7832b570f46 to your computer and use it in GitHub Desktop.
class Router<EndPoint: EndPointType>: NetworkRouter {
private var task: URLSessionTask?
func request(_ route: EndPoint, completion: @escaping NetworkRouterCompletion) {
}
func cancel() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment