# `PhoenixMicro.Consumer.RetryScheduler`
[🔗](https://github.com/iamkanishka/phoenix_micro/blob/v1.0.0/lib/phoenix_micro/consumer.ex#L485)

Computes the next retry delay using exponential backoff with optional jitter.

Delegates to `PhoenixMicro.Utils.Backoff` for the core algorithm.

# `next_delay`

```elixir
@spec next_delay(
  pos_integer(),
  keyword()
) :: non_neg_integer()
```

---

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