Table of Contents

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 compute returns for the number of failures before this one and this failure's exception.

Constant(TimeSpan)

Waits delay before every retry.

Operators

implicit operator RetryDelayRule(TimeSpan)

As Constant(TimeSpan).