Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Last active June 16, 2023 11:58
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 tdcolvin/36bff92375fd8d71aa5b0fecc39070fa to your computer and use it in GitHub Desktop.
Save tdcolvin/36bff92375fd8d71aa5b0fecc39070fa to your computer and use it in GitHub Desktop.
package com.tdcolvin.planetspotters.data.repository
sealed class WorkResult<out R> {
data class Success<out T>(val data: T) : WorkResult<T>()
data class Error(val exception: Exception) : WorkResult<Nothing>()
object Loading : WorkResult<Nothing>()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment