Package-level declarations

Types

Link copied to clipboard
class History<T>(capacity: Int, initialEntries: List<T>, val job: Job) : WithJob

Keeps track of historical values (i.e. of a Store) and allows you to navigate back in history

Functions

Link copied to clipboard
fun <T> WithJob.history(capacity: Int = 0, initialValue: List<T> = emptyList(), job: Job = this.job): History<T>

factory-method to create a History

fun <D> Store<D>.history(capacity: Int = 0, initialEntries: List<D> = emptyList(), job: Job = this.job, synced: Boolean = true): History<D>

factory-method to create a History synced with the given Store, so that each update is automatically stored in history.