• Creates a policy that resets once the component has operated without failing for the given duration. Repeated healthy reports do not move the starting point; only a failure clears it.

    Parameters

    • healthyForMs: number

      How long the component must operate without failing, in milliseconds; must be a positive, finite number.

    • Optional clock: (() => number)

      The time source used to measure the healthy stretch; defaults to a monotonic clock. Primarily for testing.

      Optional
        • (): number
        • Returns number

    Returns ResetPolicy

Generated using TypeDoc