/** * A generic type that returns backoff intervals. */ export interface IBackoffFactory { /** * Returns the first backoff duration. */ next(context: T): IBackoff; } /** * A generic type that returns backoff intervals. */ export interface IBackoff extends IBackoffFactory { /** * Returns the number of milliseconds to wait for this backoff attempt. */ readonly duration: number; } export * from './ConstantBackoff'; export * from './DelegateBackoff'; export * from './ExponentialBackoff'; export * from './ExponentialBackoffGenerators'; export * from './IterableBackoff';