Created
March 21, 2022 11:43
-
-
Save Ahmedgadein/1981e8078e3120f99ca2c1516511e76e to your computer and use it in GitHub Desktop.
This file contains 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 Result<out T>{ | |
object Loading(): Result<Nothing>() | |
class Success<T>(val value: T): Result<T>() | |
class Error(val message:String): Result<Nothing>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment