UNPKG

influx

Version:
16 lines (15 loc) 403 B
export interface IBackoffStrategy { /** * GetDelay returns the amount of delay of the current backoff. */ getDelay: () => number; /** * Next is called when a failure occurs on a host to * return the next backoff amount. */ next: () => IBackoffStrategy; /** * Returns a strategy with a reset backoff counter. */ reset: () => IBackoffStrategy; }