API Core - v1.5.0
    Preparing search index...

    Class RetryGuard

    One-shot retry budget limiter.

    Allows at most one retry per configured window. tryConsume() returns true when the budget is available (and opens a new window), false otherwise. Used by API clients to cap reactive re-authentication attempts on auth-failure responses and prevent tight retry loops.

    Implements

    • Disposable
    Index
    • Cancel the current retry window on disposal, so a disposed guard never withholds a budget behind a dead client.

      Returns void

    • Attempt to consume the retry budget.

      Returns boolean

      true if the caller may proceed with a retry, false if the budget is exhausted for the current window.