Change type of NotificationSettingsState.currentPushDistributor from AsyncAction to AsyncData

This commit is contained in:
Benoit Marty 2024-05-28 14:18:00 +02:00
parent ab99137baf
commit 9a24e7d4af
5 changed files with 20 additions and 16 deletions

View file

@ -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(