Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / windowAdvance

Function: windowAdvance()

ts
function windowAdvance(state, nowSlot): SlidingWindowState;

Defined in: packages/core/dist/index.d.ts

Rotates the ring so nowSlot is the head; expired slots zero out.

Parameters

ParameterType
stateSlidingWindowState
nowSlotnumber

Returns

SlidingWindowState