LANGUAGE

Retry budget

Limits total time spent on attempts and delays.

Formal Syntax & Structure

csharp syntaxcsharp
remaining = total - elapsed - delay

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.Math.Max(0, Math.Min(300, 1000 - 760 - 100))
C# & .NET Reference