API Reference / @evolu/common / Promise

Promise

Interfaces

InterfaceDescription
RetryAbortErrorError representing a retry operation that was aborted.
RetryErrorError representing a retry operation that failed after multiple attempts.
RetryOptionsOptions for configuring retry behavior.
TimeoutError-

Functions

FunctionDescription
retryExecutes a function with retry logic using exponential backoff and jitter.
waitHelper function to delay execution for a specified number of milliseconds.
withTimeoutWraps an async function with a timeout, returning Result that fails with TimeoutError if the timeout is exceeded. The provided function must accept an AbortSignal and return a Result.

Was this page helpful?