Given a list of non-deterministic structures, mirrors the first that manages to emit an element or that completes and ignore or cancel the rest.
Builds deferrable instances from the given factory.
Builds deferrable instances from the given factory.
Delays the execution of the instance and consequently the execution of
any side-effects, by the specified timespan
.
Delays the execution of the instance and consequently the execution of
any side-effects, until the given trigger
emits an element or completes.
Executes the source immediately, but delays the signaling by
the specified timespan
.
Executes the source immediately, but delays the signaling by
the specified timespan
. In case F
is a sequence,
then the delay will be applied to each element, but not
to completion or the signaling of an error.
Executes the source immediately, but delays the signaling
until the specified selector
emits an element or completes.
Executes the source immediately, but delays the signaling
until the specified selector
emits an element or completes.
In case F
is a sequence, then the delay will be applied
to each element, but not to completion or the
signaling of an error.
Builds an instance by evaluating the given expression with a delay applied.
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.
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.
Lifts an error into context.
Lifts an error into context.
Trigger a TimeoutException
after the given timespan
has passed without
the source emitting anything.
In case the given timespan
passes without the source emitting any
signals, then switch to evaluating the backup
.
The Unit
lifted into the deferrable context.
The Unit
lifted into the deferrable context.
Type-class for monadic contexts whose evaluation can be delayed.
Note that this includes asynchronous streams.