Coffrify.Runtime.Retry.FibonacciBackoff (Coffrify v0.9.0)

View Source

Fibonacci-spaced backoff — softer than exponential, friendly to busy endpoints (1, 1, 2, 3, 5, 8, 13, …).

Summary

Functions

Build a policy.

Types

t()

@type t() :: %Coffrify.Runtime.Retry.FibonacciBackoff{
  base_delay_ms: pos_integer(),
  max_attempts: non_neg_integer(),
  max_delay_ms: pos_integer()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Build a policy.