@twilio/voice-sdk
Version:
Twilio's JavaScript Voice SDK
21 lines (20 loc) • 602 B
TypeScript
/// <reference types="node" />
/**
* @packageDocumentation
* @internalapi
*/
import { EventEmitter } from 'events';
declare class Backoff extends EventEmitter {
/**
* Construct a {@link Backoff}.
* @param {object} options
* @property {number} min - Initial timeout in milliseconds [100]
* @property {number} max - Max timeout [10000]
* @property {boolean} jitter - Apply jitter [0]
* @property {number} factor - Multiplication factor for Backoff operation [2]
*/
constructor(options: any);
backoff(): void;
reset(): void;
}
export default Backoff;