@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Function computeBackoff

    • Delay in ms before the next attempt, after attempt (1-based) failed attempts. Capped exponential with symmetric jitter; a function policy is called as-is. Never negative; non-finite results become 0.

      Parameters

      • policy: RetryBackoff | undefined
      • attempt: number
      • random: () => number = Math.random

      Returns number