Function: crdtPnCounter()
Function: crdtPnCounter()
Section titled “Function: crdtPnCounter()”crdtPnCounter():
Column<number,true,true>
Defined in: core/src/schema/columns.ts:321
PN-Counter: signed counter, pnRead(map) yields a number that can
increase and decrease. Wire shape is { p: G-Counter, n: G-Counter } — the observed value is sum(p) - sum(n). Alpha
(dogfood) needed this for “current completed count” that has to
swing both ways.
Write with pnIncrement(clientID, delta, current) or
pnDecrement(clientID, delta, current) from @sh1n4ps/plasma-core.
Returns
Section titled “Returns”Column<number, true, true>