success

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

Creates a new SubscriptionState with the SubscriptionStatus.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.