class

Kiq::Counter

Inherits Reference < Object

Ruby doesn't have atomic counters; Crystal fibers on one thread make a plain += atomic enough (no preemption inside the increment).

Instance methods

incr(amount : Int64 = 1) : Nil
Source
reset
Source
value
Source
value=(value : Int64)
Source