Skip to content

RateMeterFactory = (clock) => RateMeter

Defined in: packages/rate-limit/src/rate-limit.ts:127

Build a meter over the reading its owner supplies.

A keyed table passes its own clamped reading, so every meter it holds shares one highest reading; a standalone factory clamps the caller’s clock itself. Either way the meter reads only through the function it was given.

Clock

RateMeter