Companion

object Companion

Functions

Link copied to clipboard
fun <T> failure(error: Throwable, errorUpdatedAt: Long = epoch()): QueryState<T>
fun <T> failure(error: Throwable, errorUpdatedAt: Long = epoch(), data: T, dataUpdatedAt: Long = epoch(), dataStaleAt: Long = dataUpdatedAt): QueryState<T>

Creates a new QueryState with the QueryStatus.Failure status.

Link copied to clipboard
fun <T> initial(): QueryState<T>

Creates a new QueryState with the QueryStatus.Pending status.

Link copied to clipboard
fun <T> success(data: T, dataUpdatedAt: Long = epoch(), dataStaleAt: Long = dataUpdatedAt): QueryState<T>

Creates a new QueryState with the QueryStatus.Success status.