Companion
object Companion
Content copied to clipboard
Provides some usual transaction functions for the DatasyncNode.runTransaction method.
Functions
increment
Link copied to clipboard
@JvmOverloads()
@JvmStatic()
Content copied to clipboard
toggle
Link copied to clipboard
@JvmStatic()
@JvmOverloads()
Content copied to clipboard
inline fun <T : Any> toggle(ping: T, pong: T): (DatasyncValuable) -> TransactionOperation
Content copied to clipboard
writeIfNone
Link copied to clipboard
@JvmStatic()
Content copied to clipboard
Transaction function that atomically sets a given value to a data node only if it had no value.