You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
436 B
TypeScript

8 months ago
import { IDelay } from "./delay.interface";
import { IBackOffOptions } from "../options";
export declare abstract class Delay implements IDelay {
private options;
protected attempt: number;
constructor(options: IBackOffOptions);
apply(): Promise<unknown>;
setAttemptNumber(attempt: number): void;
private readonly jitteredDelay;
private readonly delay;
protected readonly numOfDelayedAttempts: number;
}