mollitia
Version:
JavaScript Resilience Library
13 lines (11 loc) • 501 B
TypeScript
import { CircuitFunction } from '../../circuit.js';
import { SlidingWindowBreaker, SlidingWindowBreakerOptions } from './index.js';
/**
* The Sliding Time Breaker Module, that allows to break the circuit if it often fails on a time window.
*/
export declare class SlidingTimeBreaker extends SlidingWindowBreaker {
private maxSize;
constructor(options?: SlidingWindowBreakerOptions);
private filterCalls;
executeInClosed<T>(promise: CircuitFunction, ...params: any[]): Promise<T>;
}