Builds deferrable instances from the given factory.
Builds deferrable instances from the given factory.
Hides errors in the context that expressed as Try
.
Lifts a non-strict value into the deferrable context.
Lifts a non-strict value into the deferrable context.
Lifts a non-strict value into the deferrable context, but memoizes it for subsequent evaluations.
Lifts a non-strict value into the deferrable context, but memoizes it for subsequent evaluations.
Turns the monadic context into one that exposes any errors that might have happened.
Turns the monadic context into one that exposes any errors that might have happened.
Exposes both successful results and potential errors by in the evaluable context.
Given a deferrable, memoizes its result on the first evaluation, to be reused for subsequent evaluations.
Given a deferrable, memoizes its result on the first evaluation, to be reused for subsequent evaluations.
Lifts a strict value into the deferrable context.
Lifts a strict value into the deferrable context.
Alias for Applicative.pure
.
Mirrors the source, but if an error happens, then fallback to other
.
Mirrors the source, but if an error happens, then fallback to other
.
Mirrors the source, but in case an error happens then use the given total function to fallback to a given element for certain errors.
Mirrors the source, but in case an error happens then use the given total function to fallback to a given element for certain errors.
See onErrorRecover for the alternative accepting a partial function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given total function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given total function.
See onErrorRecoverWith for the alternative accepting a partial function.
Mirrors the source, but in case an error happens then use the given partial function to fallback to a given element for certain errors.
Mirrors the source, but in case an error happens then use the given partial function to fallback to a given element for certain errors.
See onErrorHandle for the alternative accepting a total function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given partial function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given partial function.
See onErrorHandleWith for the alternative accepting a total function.
Creates a new instance that in case of error will retry executing the source again and again, until it succeeds, or until the maximum retries count is reached.
Creates a new instance that in case of error will retry executing the source again and again, until it succeeds, or until the maximum retries count is reached.
In case of continuous failure the total number of executions
will be maxRetries + 1
.
Creates a new instance that in case of error will
retry executing the source again and again,
until it succeeds or until the given predicate
is false
.
Creates a new instance that in case of error will
retry executing the source again and again,
until it succeeds or until the given predicate
is false
.
In case of continuous failure the total number of executions
will be maxRetries + 1
.
Lifts an error into context.
Lifts an error into context.
Given a predicate function, keep retrying the source until the function returns true.
Given a predicate function, keep retrying the source until the function returns true.
The Unit
lifted into the deferrable context.
The Unit
lifted into the deferrable context.
Type-class for computations that can be materialized to a single result.