Skip to content

Instantly share code, notes, and snippets.

@satishbabariya
Created July 8, 2019 06:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save satishbabariya/1156b5206a774ac12f992c979976e7da to your computer and use it in GitHub Desktop.
MyService.zen.request(type: [Todo].self) { result in
switch result {
case let .success(todos):
// Array of [Todo]
case let .failure(error):
// error
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment