TucoTuco.Retry
SourceSummary
retry(fun) | Retry a function until either it returns true, {:ok, _} or an element, or the number of retries greater than TucoTuco.max_retry_time |
Functions
Retry a function until either it returns true, {:ok, _} or an element, or the number of retries greater than TucoTuco.max_retry_time.
Delays between each retry for TucoTuco.retry_delay
milliseconds.
It does not use retries if TucoTuco.use_retry
is false, which is the
default.