Electric.Connection.Manager.ConnectionBackoff (electric v1.0.19)

View Source

Summary

Types

connection_backoff()

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

Functions

fail(map)

init(start, max)

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

succeed(conn_backoff)

total_retry_time(map)

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