Struct RetryDelayRule
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
TanStack's retryDelay option as a value: a constant wait, or a function of the failure. A
System.TimeSpan converts implicitly, and By(Func<int, Exception, TimeSpan>) takes the function. The default value
is the default schedule: one second doubled at each retry, capped at thirty seconds.
public readonly struct RetryDelayRule
Methods
- By(Func<int, Exception, TimeSpan>)
Waits what
computereturns for the number of failures before this one and this failure's exception.
- Constant(TimeSpan)
Waits
delaybefore every retry.