API Reference / @evolu/common / Promise
Promise
Interfaces
Interface | Description |
---|---|
RetryAbortError | Error representing a retry operation that was aborted. |
RetryError | Error representing a retry operation that failed after multiple attempts. |
RetryOptions | Options for configuring retry behavior. |
TimeoutError | - |
Functions
Function | Description |
---|---|
retry | Executes a function with retry logic using exponential backoff and jitter. |
wait | Helper function to delay execution for a specified number of milliseconds. |
withTimeout | Wraps 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. |