Files
headlamp-sealed-secrets-plugin/docs/api-reference/generated/lib/retry/functions/retryWithBackoff.md
T
Chris Farhood 46d59b48b5 chore: migrate repository to privilegedescalation organization
Updated all GitHub URLs from cpfarhood to privilegedescalation organization:
- Repository URLs in package.json and Artifact Hub metadata
- Documentation links and references
- Git remote updated

No functional changes - this is purely an organizational migration.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-12 10:50:30 -05:00

1.2 KiB

Headlamp Sealed Secrets API v0.2.0


Headlamp Sealed Secrets API / lib/retry / retryWithBackoff

Function: retryWithBackoff()

retryWithBackoff<T, E>(operation, options?): AsyncResult<T, string>

Defined in: src/lib/retry.ts:86

Retry an async operation with exponential backoff

Type Parameters

T

T

E

E

Parameters

operation

() => AsyncResult<T, E>

Async operation to retry (should return AsyncResult)

options?

RetryOptions = {}

Retry configuration

Returns

AsyncResult<T, string>

Result of the operation or final error after all retries

Example

const result = await retryWithBackoff(
  async () => fetchPublicCertificate(config),
  { maxAttempts: 3, initialDelayMs: 1000 }
);