Skip to content

Instantly share code, notes, and snippets.

@funkyboy
Created October 1, 2019 19:57
Show Gist options
  • Save funkyboy/02964fb2ef40c5a9121c35b23ab1790f to your computer and use it in GitHub Desktop.
Save funkyboy/02964fb2ef40c5a9121c35b23ab1790f to your computer and use it in GitHub Desktop.
Unicorn API
Result res = fetchThingsFromNetwork()
if res.hasError {
showError(res.error)
return
}
displayResults(res.data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment