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) • 369 B
TypeScript
import { IBackoff, IBackoffFactory } from './Backoff';
export declare class IterableBackoff implements IBackoffFactory<unknown> {
private readonly durations;
/**
* Backoff that returns a number from an iterable.
*/
constructor(durations: ReadonlyArray<number>);
/**
* @inheritdoc
*/
next(_context: unknown): IBackoff<unknown>;
}