cockatiel
Version:
A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Inspired by .NET Polly.
13 lines (12 loc) • 329 B
TypeScript
import { IBackoff, IBackoffFactory } from './Backoff';
export declare class ConstantBackoff implements IBackoffFactory<unknown> {
private readonly interval;
/**
* Backoff that returns a constant interval.
*/
constructor(interval: number);
/**
* @inheritdoc
*/
next(): IBackoff<unknown>;
}