# `Electric.Connection.Manager.ConnectionBackoff`
[🔗](https://github.com/electric-sql/electric/tree/%40core/sync-service%401.6.2/packages/sync-service/lib/electric/connection/manager/connection_backoff.ex#L1)

# `connection_backoff`

```elixir
@type connection_backoff() :: %{
  backoff: :backoff.backoff(),
  retries_started_at: nil | integer()
}
```

# `fail`

```elixir
@spec fail(connection_backoff()) :: {pos_integer(), connection_backoff()}
```

# `init`

```elixir
@spec init(pos_integer(), :infinity | pos_integer()) :: connection_backoff()
```

# `succeed`

```elixir
@spec succeed(connection_backoff()) :: {pos_integer(), connection_backoff()}
```

# `total_retry_time`

```elixir
@spec total_retry_time(connection_backoff()) :: pos_integer()
```

---

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