Skip to content

@lelantos-org/sdk / core / retry

Function: retry() โ€‹

ts
function retry<T>(
   fn, 
   policy, 
   rand?
): Promise<T>;

Defined in: @lelantos-org/sdk/dist/core/async.d.ts:32

Exponential backoff with jitter. fn receives the 0-based attempt number.

Type Parameters โ€‹

Type Parameter
T

Parameters โ€‹

ParameterType
fn(attempt) => Promise<T>
policyRetryPolicy
rand?() => number

Returns โ€‹

Promise<T>

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub