success
fun <T> success(data: T, dataUpdatedAt: Long = epoch(), subscriberStatus: SubscriberStatus = SubscriberStatus.NoSubscribers): 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.
subscriberStatus
The status of the subscriber.