UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

19 lines (18 loc) 428 B
/** * @module Async */ import type { Invokable } from "../../utilities/_module-exports.js"; /** * @returns Amount milliseconds to wait * * IMPORT_PATH: `"@daiso-tech/core/async"` * @group BackoffPolicies */ export type BackoffPolicy = Invokable<[ attempt: number, error: unknown ], number>; /** * @internal */ export declare function withJitter(jitter: number, value: number, mathRandom: () => number): number;