@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
13 lines (11 loc) • 331 B
text/typescript
import type { Duration } from './Duration';
/**
* @group Time
*/
export interface RepeatUntilLimits<Result> {
exitCondition?: (result: Result) => boolean,
maxInvocations?: number,
delayBetweenInvocations?: (i: number) => Duration,
timeout?: Duration
errorHandler?: (error: Error, result?: Result) => void;
}