class

LavinMQPerf::Ticker

Inherits Reference < Object

Smooth per-iteration pacer; when @rate is zero just yields periodically. Reference type so the consume callback shares one instance across calls.

Constants

SLEEP_GRANULARITY = 1.millisecond
YIELD_INTERVAL = 128 * 1024

Constructors

new(rate : Int32)
Source

Instance methods

tick
Source