Skip to content

Documentation / @eventkit/base / RetryStrategy

Type Alias: RetryStrategy

ts
type RetryStrategy = object;

Configuration options for the retry operator.

This type defines the parameters that control retry behavior when an error occurs in an observable chain. It allows configuring the number of retry attempts, delay between retries, and the backoff strategy for increasing delays.

Properties

backoff?

ts
optional backoff: RetryBackoff;

Strategy for increasing delay between retry attempts.


delay?

ts
optional delay: number;

Time in milliseconds to wait before each retry attempt. Required when using a backoff strategy.


limit?

ts
optional limit: number;

Maximum number of retry attempts before giving up. If not specified, defaults to 1.

Released under the MIT License.