import { IBackoffStrategy } from "./BackoffStrategy" ; import { wait } from "./Wait" ; export class ConstantBackoff implements IBackoffStrategy { constructor ( readonly timeoutMs , readonly waitFn = wait ) { } public async backoff ( ) { return await this . waitFn ( this . timeoutMs ) ; } }