Last active
July 20, 2022 16:31
-
-
Save lukaszkalnik/0432d152e30c32447c9447ffe840c8e0 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
sealed class DataState<T> { | |
sealed class DataMissing : DataState<Nothing>() { | |
object NotInitialized : DataMissing() | |
data class Error(cause: Exception) : DataMissing() | |
} | |
data class DataLoaded<T>(val data: T) : DataState<T>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment