# `Spectre.Operation.Retry`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/operation/retry.ex#L1)

Portable retry and backoff policy for a registered operation.

# `t`

```elixir
@type t() :: %Spectre.Operation.Retry{
  base_delay_ms: non_neg_integer(),
  max_attempts: pos_integer(),
  max_delay_ms: non_neg_integer(),
  retry_on: [atom()],
  strategy: :constant | :linear | :exponential
}
```

# `delay`

```elixir
@spec delay(t(), pos_integer()) :: non_neg_integer()
```

# `new`

```elixir
@spec new(t() | map() | keyword() | nil) :: t()
```

# `retry?`

```elixir
@spec retry?(t(), atom(), pos_integer()) :: boolean()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
