We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38dbb8a commit 8ed51ddCopy full SHA for 8ed51dd
mini-common/src/main/java/mini/Resource.kt
@@ -14,6 +14,8 @@ open class Resource<out T> @PublishedApi internal constructor(val value: Any?) {
14
val isFailure: Boolean get() = value is Failure
15
val isLoading: Boolean get() = value is Loading<*>
16
17
+ val isTerminal: Boolean get() = isSuccess || isFailure
18
+
19
internal class Empty {
20
override fun toString(): String = "Empty()"
21
}
0 commit comments