Skip to content

Instantly share code, notes, and snippets.

@patrickcousins
Created April 12, 2018 03:36
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 patrickcousins/f4376f4882eeec205ae6c8e53da679f0 to your computer and use it in GitHub Desktop.
Save patrickcousins/f4376f4882eeec205ae6c8e53da679f0 to your computer and use it in GitHub Desktop.
val done = when (result) {
   is Result.Success -> showList(result.items)
   is Result.Failure -> result.error.printStackTrace()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment