Causal[A: Causal[A] ref]¶
A convergent, serializable CRDT that uses dot-based causal tracking. Types implementing this trait support creation under a replica id, convergent merging, token-based serialization, and clearing all local state.
Implements¶
- Convergent[A] ref
- Replicated ref
Constructors¶
create¶
Parameters¶
- id: ID
Returns¶
- Causal[A] ref^
Public Functions¶
clear[optional D: A]¶
Clear all local state, returning a delta that propagates the clear.
Parameters¶
- delta': D = recover D(0) end
Returns¶
- D
converge¶
Parameters¶
- that: box->A
Returns¶
- Bool val
is_empty¶
Returns¶
- Bool val
from_tokens¶
Parameters¶
- that: TokensIterator ref
Returns¶
- None val ?
each_token¶
Parameters¶
- tokens: Tokens ref
Returns¶
- None val