attempt v0.2.0 Attempt.Retry.DefaultPolicy

Defines the default retry policy.

A retry policy classifies the returns from the called function into one of three classifications:

  • :return which indicates this is a successfull function call and the result should be returned

  • :retry which indicates the function call returned an error result but that retries should be attempted

  • :reraise which indicates that an exception was raised during the function execution and that the exception should be reraised.

Developers may create their own retry policy modules by following the Attempt.Retry @behaviour.

Link to this section Summary

Functions

Callback implementation for Attempt.Retry.action/1

Link to this section Functions

Callback implementation for Attempt.Retry.action/1.