AniLink - v3.0.0
    Preparing search index...

    Function applyJitter

    • Applies full jitter to a computed backoff cap: the returned wait is a uniformly random value in [0, cap], which spreads out retries from concurrent clients instead of synchronizing them.

      Parameters

      • cap: number

        The un-jittered delay cap in milliseconds.

      • policy: RetryPolicy

        The active retry policy.

      Returns number

      The delay to wait before the next retry, in milliseconds.