Cats Api Documentation

Version: 1.2.0

cats.labs.crdt.pncounter

PN-Counters allow the counter to be incremented by tracking the increments (P) separate from the decrements (N). Both P and N are represented as internal G-Counters.

Merge is handled by merging the internal P and N counters. The value of the counter is the value of the P counter minus the value of the N counter.

->PNCounter

(->PNCounter p n)

Positional factory function for class cats.labs.crdt.pncounter.PNCounter.

pncounter

(pncounter)(pncounter node)

A G-Counter data type constructor.

pncounter*

(pncounter* data node)