Builds a guard whose budget refills delayMs after a consume.
Width of the refusal window in milliseconds.
Cancel the current retry window on disposal, so a disposed guard never withholds a budget behind a dead client.
Attempt to consume the retry budget.
true if the caller may proceed with a retry, false if the
budget is exhausted for the current window.
One-shot retry budget limiter.
Allows at most one retry per configured window.
tryConsume()returnstruewhen the budget is available (and opens a new window),falseotherwise. Used by API clients to cap reactive re-authentication attempts on auth-failure responses and prevent tight retry loops.