exlasticsearch v1.5.0 ExlasticSearch.RetryStrategy behaviour View Source

Behavior for retrying a 0-arity function according to some strategy

Link to this section Summary

Link to this section Types

Link to this type callable() View Source
callable() :: (() -> {:ok, any()} | {:error, any()})
Link to this type response() View Source
response() :: {:ok, any()} | {:error, any()}

Link to this section Callbacks

Link to this callback retry(fnc, opts) View Source
retry(fnc :: callable(), opts :: list()) :: response()