Skip to main content

Module refresh

Module refresh 

Source
Expand description

Board-agnostic refresh coordination (REQ-17/REQ-18): concurrent refreshes of the same target share one fetch, a repeated refresh within the cooldown is refused and reported (never silently served from cache), and refreshedAt only ever increases for a target. A board picks its own target keys, such as item:42 or scope.

Structs§

Refresher
One board’s refresh coordinator. A target is a string key; every target coalesces and throttles independently of every other target.

Functions§

cooldown_remaining
None once now is at least cooldown seconds past last; otherwise the whole remaining seconds, always at least one.
monotonic
Strictly greater than previous whenever one exists, even if the clock has not advanced or has gone backward.