increment

Deprecated

Use DatasyncNode.increment(step, start) instead

Transaction function that atomically increments the value of a data node by a given step or sets the initial start value if the data node had no value.

This function is expected to be passed to the DatasyncNode.runTransaction method.


Deprecated

Use DatasyncNode.increment(1) instead

Transaction function that atomically increments the value of a data node or sets its initial value to 0 if it had no value.

This function is expected to be passed to the DatasyncNode.runTransaction method.