Rulvar API reference / @rulvar/rulvar / windowAdmits
Function: windowAdmits()
ts
function windowAdmits(
state,
cap,
amount): boolean;Defined in: packages/core/dist/index.d.ts
Admits when the trailing sum stays under cap. This bounds the fixed epoch double burst to one sub-window's allowance, a documented burst, not a silent fix of the pinned RV708 semantics.
Parameters
| Parameter | Type |
|---|---|
state | SlidingWindowState |
cap | number |
amount | number |
Returns
boolean