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
initialDelayTimeSpanThe initial delay.
multiplierdoubleThe multiplier for each subsequent retry (default 2.0).
maxDelayTimeSpan?The maximum delay cap.
Returns
- RetryPolicy
This policy for method chaining.