Function: withDbRetry()
withDbRetry<
T
>(operation
: () =>Promise
<T
>,operationName
:string
,maxRetries
:number
):Promise
<T
>
Defined in: electron/utils/retry.ts:113
Database-specific retry wrapper with optimized settings for database operations.
Type Parameters
T
T
The return type of the database operation
Parameters
operation
() => Promise
<T
>
Database operation to retry
operationName
string
Name of the operation for logging
maxRetries
number
= 5
Maximum number of retry attempts (default: 5)
Returns
Promise
<T
>
Promise that resolves with the operation result