Last active
June 16, 2023 11:58
-
-
Save tdcolvin/36bff92375fd8d71aa5b0fecc39070fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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