Loadable

sealed class Loadable<out T> : DataModel<T>

Promise-like data structure that represents the state of a value that is being loaded.

Currently, this interface is intended for temporary use as a migration to queries. Useful when combining the query.compose.runtime package with other asynchronous processing.

Parameters

T

The type of the value that has been loaded.

Inheritors

Types

Link copied to clipboard
data class Fulfilled<T>(val data: T) : Loadable<T>

Represents the state of a value that has been loaded.

Link copied to clipboard

Represents the state of a value that is being loaded.

Link copied to clipboard
data class Rejected(val error: Throwable) : Loadable<Nothing>

Represents the state of a value that has been rejected.

Properties

Link copied to clipboard
abstract val error: Throwable?
Link copied to clipboard
abstract val errorUpdatedAt: Long
Link copied to clipboard
abstract val reply: Reply<T>
Link copied to clipboard
abstract val replyUpdatedAt: Long

Functions

Link copied to clipboard
open override fun isAwaited(): Boolean