Type of value stored by the register
Create a new Replicated Register.
A value to hold in the register
The clock to use, otherwise default clock
The custom clock value, if using a custom clock
Get or set the value of this register.
Get or set the value of this register.
Set the value using a custom clock.
The value to set
The clock, otherwise the default clock
Custom clock value, or ignored if a custom clock isn't specified
Generated using TypeDoc
A Replicated Register data type.
A ReplicatedRegister uses a clock to determine which of two concurrent updates should win. The last write wins. The clock is represented as a number. The default clock uses the proxies system time, custom clocks can supply a custom number to be used. If two clock values are equal, the write from the node with the lowest address wins.