Options
All
  • Public
  • Public/Protected
  • All
Menu

BackOff implementation to help delaying actions such as resending data or reconnecting to a peer. This implementation will double the delay and apply an optional jitter

Hierarchy

  • BackOff

Index

Constructors

constructor

Methods

asPromise

  • asPromise(): Promise<void>
  • Get the next delay as a promise. The promise will resolve when delay is reached.

    Returns Promise<void>

    promise that resolves when the next delay is reached

nextDelay

  • nextDelay(): number

reset

  • reset(): void

Generated using TypeDoc