Raxol.Swarm.CRDT.LWWRegister
(Raxol v2.3.0)
View Source
Last-Writer-Wins Register CRDT.
Each value is tagged with a timestamp. On merge, the entry with the highest timestamp wins. Ties are broken by lexicographic node name.
Timestamps use microseconds for ordering precision. Other swarm modules use milliseconds for intervals/thresholds -- do not compare across units.
Summary
Functions
Merges two registers. Keeps the one with the highest timestamp. Ties broken by lexicographic node name comparison.
Creates a new register with the given value.
Updates the register value, advancing the timestamp.
Returns the current value.
Types
Functions
Merges two registers. Keeps the one with the highest timestamp. Ties broken by lexicographic node name comparison.
Creates a new register with the given value.
Updates the register value, advancing the timestamp.
Returns the current value.