AniLink - v3.0.0
    Preparing search index...

    Function getBackoffDelay

    • Computes the raw exponential backoff cap for an attempt.

      Parameters

      • attempt: number

        The zero-based index of the attempt that just failed.

      • policy: RetryPolicy

        The active retry policy.

      Returns number

      The un-jittered delay cap in milliseconds.