View Source PulsarEx.RetryStrategy behaviour (PulsarEx v0.14.0)

Adopted from Xandra.RetryStrategy https://github.com/lexhide/xandra/blob/main/lib/xandra/retry_strategy.ex then modified by Blueshift at: https://raw.githubusercontent.com/blueshift-labs/xandra/main/lib/xandra/retry_strategy.ex

Summary

Types

@type state() :: term()

Callbacks

@callback default_options() :: keyword()
@callback new(options :: keyword()) :: state()
Link to this callback

retry(error, options, state)

View Source
@callback retry(error :: term(), options :: keyword(), state()) ::
  :error | {:retry, new_options :: keyword(), new_state :: state()}