success

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

Creates a new QueryState with the QueryStatus.Success status.

Parameters

data

The data to be stored in the state.

dataUpdatedAt

The timestamp when the data was updated. Default is the current epoch.

dataStaleAt

The timestamp after which data is considered stale. Default is the same as dataUpdatedAt.