TransactionResult

data class TransactionResult(val value: DatasyncValue, val hasCompleted: Boolean)

Represents the result of a transaction run by the DatasyncNode.runTransaction method.

Constructors

Link copied to clipboard
fun TransactionResult(value: DatasyncValue, hasCompleted: Boolean)

Properties

Link copied to clipboard
val hasCompleted: Boolean

Indicates whether the transaction was completed (true) or aborted (false). Aborted means the transaction function passed to DatasyncNode.runTransaction either returned Abort or has been attempted too many times on the Webcom back end without success.

Link copied to clipboard
val value: DatasyncValue

The value actually set to the data node if the transaction was properly completed (i.e. hasCompleted is true). It is meaningless if hasCompleted is false.