Table of Contents

Method WithExponentialBackoff

Namespace
LMKit.Agents.Resilience
Assembly
LM-Kit.NET.dll

WithExponentialBackoff(TimeSpan, double, TimeSpan?)

Configures exponential backoff.

public RetryPolicy WithExponentialBackoff(TimeSpan initialDelay, double multiplier = 2, TimeSpan? maxDelay = null)

Parameters

initialDelay TimeSpan

The initial delay.

multiplier double

The multiplier for each subsequent retry (default 2.0).

maxDelay TimeSpan?

The maximum delay cap.

Returns

RetryPolicy

This policy for method chaining.