UNPKG

askui

Version:

Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on

24 lines (23 loc) 822 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoRetryStrategy = void 0; /** * NoRetryStrategy implements a retry strategy that does not perform any retries. * It is useful when you want to disable retries for certain operations. */ class NoRetryStrategy { constructor() { this.baseDelayMs = 0; this.retryCount = 0; } /** * Always returns 0 delay, as no retries are performed. * @param _attempt - The current retry attempt number (not used in this strategy) * @returns The delay in milliseconds for the current attempt (always 0) * @remarks This method is not used, but it's required by the RetryStrategy interface. */ getDelay(_attempt) { return this.baseDelayMs; } } exports.NoRetryStrategy = NoRetryStrategy;