The Attempt
represents a strict, already evaluated result
of a Coeval that either resulted in success, wrapped in a
Now, or in an error, wrapped in a Error.
Constructs an eager Coeval instance for a result that represents an error.
Constructs a lazy Coeval instance.
Constructs a lazy Coeval instance.
This type can be used for "lazy" values. In some sense it is equivalent to using a Function0 value.
Constructs a lazy Coeval instance that gets evaluated only once.
Constructs a lazy Coeval instance that gets evaluated only once.
In some sense it is equivalent to using a lazy val. When caching is not required or desired, prefer EvalAlways or Now.
Constructs an eager Coeval instance from a strict value that's already known.
Groups the implementation for the type-classes defined in monix.types.
Promotes a non-strict value to a Coeval.
Promotes a non-strict value to a Coeval.
Alias of evalAlways.
Promote a non-strict value representing a Coeval
to a Coeval
of the
same type.
Promote a non-strict value to an Coeval
, catching exceptions in the
process.
Promote a non-strict value to an Coeval
, catching exceptions in the
process.
Note that since Coeval
is not memoized, this will recompute the
value each time the Coeval
is executed.
Promote a non-strict value to a Coeval
that is memoized on the first
evaluation, the result being then available on subsequent evaluations.
Returns an Coeval
that on execution is always successful, emitting
the given strict value.
Lifts a value into the coeval context.
Lifts a value into the coeval context. Alias for now.
Returns an Coeval
that on execution is always finishing in error
emitting the specified exception.
Transforms a TraversableOnce
of coevals into a coeval producing
the same collection of gathered results.
Transforms a TraversableOnce
of coevals into a coeval producing
the same collection of gathered results.
It's a simple version of traverse.
Transforms a TraversableOnce[A]
into a coeval of the same collection
using the provided function A => Coeval[B]
.
Transforms a TraversableOnce[A]
into a coeval of the same collection
using the provided function A => Coeval[B]
.
It's a generalized version of sequence.
Implicit type-class instances of Coeval.
A Coeval[Unit]
provided for convenience.
Pairs two Coeval instances.
Pairs three Coeval instances.
Pairs four Coeval instances.
Pairs five Coeval instances.
Pairs six Coeval instances.
Zips together multiple Coeval instances.
Pairs two Coeval instances, creating a new instance that will apply the given mapping function to the resulting pair.
Pairs three Coeval instances, applying the given mapping function to the result.
Pairs four Coeval instances, applying the given mapping function to the result.
Pairs five Coeval instances, applying the given mapping function to the result.
Pairs six Coeval instances, applying the given mapping function to the result.