success

fun <T> success(data: T, dataUpdatedAt: Long = epoch(), mutatedCount: Int = 1): MutationState<T>

Creates a new MutationState with the MutationStatus.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.

mutatedCount

The number of times the data was mutated.