mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Improve code and display error.
This commit is contained in:
committed by
Benoit Marty
parent
a65c290dd3
commit
7f9a30a033
+2
@@ -86,6 +86,8 @@ sealed interface AsyncAction<out T> {
|
||||
fun isFailure(): Boolean = this is Failure
|
||||
|
||||
fun isSuccess(): Boolean = this is Success
|
||||
|
||||
fun isReady() = isSuccess() || isFailure()
|
||||
}
|
||||
|
||||
suspend inline fun <T> MutableState<AsyncAction<T>>.runCatchingUpdatingState(
|
||||
|
||||
Reference in New Issue
Block a user