the type of values returned by this action.
the type of errors raised by this action.
An object containing the result of running an action (IO). It
will either have succeeded with a value of type A
, raise an
error of type E
, or been canceled, in which case it will not
contain a value.
the type of values returned if the action succeeds.
the type of errors raised if the action fails.
Options for controlling the behaviour of the retry
method.
The factor to multiply the delay by after each failed attempt.
The number of times to retry.
The time to wait after each failed attempt before retrying.
A predicate which will be called to decide whether a raised error should be retried.
Generated using TypeDoc
This is the primary type in the library. It represents an action which returns a value of type
A
, or raises an error of typeE
. The action may perform side effects and wait asynchronously. Any asynchronous or impure function should return this type.