update

fun update(block: (Value, Transaction) -> Value)

Set the function that updates the value on each transaction.