Skip to main content

Classes & Interfaces

RetryMetrics

Retry metrics for tracking retry attempts

Properties


Functions

isRetryableError

Determines if an error is retryable based on the status code. User-specified timeouts (504 with X-Fal-Request-Timeout-Type: user) are NOT retryable. Returns: boolean

calculateBackoffDelay

Calculates the backoff delay for a given attempt using exponential backoff Returns: number

executeWithRetry

Executes an operation with retry logic and returns both result and metrics Returns: Promise<{ result: T; metrics: RetryMetrics }>

Types

RetryOptions