Kind: Function
Source: atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts
Retry an action until it succeeds or times out
Signature
tsasync function retry(action: () => Promise<T>, options: {
maxAttempts?: number;
delayMs?: number;
timeout?: number;
}): Promise<T>
Parameters
| Name | Type |
|---|---|
action | () => Promise<T> |
options | `{ |
maxAttempts?: number; delayMs?: number; timeout?: number;
}` |
Returns: Promise<T>
Was this page helpful?