Grove.Mergeable protocol (Grove v0.1.1)
View SourceProtocol for merging CRDT states.
Allows polymorphic merging of any CRDT type without knowing the concrete implementation at compile time.
Example
iex> Grove.Mergeable.merge(counter1, counter2)
%Grove.Counter.GCounter{...}
Summary
Functions
Merges two CRDT states into one.
Types
@type t() :: term()
All the types that implement this protocol.