Change type of NotificationSettingsState.currentPushDistributor from AsyncAction to AsyncData
This commit is contained in:
parent
ab99137baf
commit
9a24e7d4af
5 changed files with 20 additions and 16 deletions
|
|
@ -91,6 +91,8 @@ sealed interface AsyncData<out T> {
|
|||
fun isSuccess(): Boolean = this is Success<T>
|
||||
|
||||
fun isUninitialized(): Boolean = this == Uninitialized
|
||||
|
||||
fun isReady() = isSuccess() || isFailure()
|
||||
}
|
||||
|
||||
suspend inline fun <T> MutableState<AsyncData<T>>.runCatchingUpdatingState(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue