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
Get the next delay as a promise. The promise will resolve when delay is reached.
promise that resolves when the next delay is reached
Get the delay for the next attempt.
number of milliseconds to wait
Reset the attempt.
Generated using TypeDoc
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