Polkadot Apps
    Preparing search index...
    • Retry an async operation with exponential backoff.

      Calls fn up to maxAttempts times. If fn returns an error result, waits with exponential backoff before the next attempt. Returns the first successful result or the last error.

      Type Parameters

      • T
      • E

      Parameters

      Returns Promise<Result<T, E>>