Skip to content

withBackupModels

function withBackupModels<T>(attempt, opts): Promise<T>;

Defined in: core/src/retry.ts:237

Walk [primary, ...backups] until one succeeds. Rethrows the last error.

Type Parameter
T
Parameter Type
attempt (model) => Promise<T>
opts BackupModelOptions

Promise<T>