Constructs a lazy Coeval instance.
The Attempt
type represents a strict, already evaluated result
of a Coeval that either resulted in success, wrapped in a
Now, or in an error, wrapped in an Error.
Constructs an eager Coeval instance for a result that represents an error.
Constructs an eager Coeval instance from a strict value that's already known.
Constructs a lazy Coeval instance that gets evaluated only once.
Groups the implementation for the type-classes defined in monix.types.
Promotes a non-strict value to a Coeval.
Promote a non-strict value representing a Coeval
to a Coeval
of the same type.
Alias for eval.
Promote a non-strict value to a Coeval
, catching exceptions in the
process.
Promote a non-strict value to a 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.
Builds a Coeval
out of a Scala Try
value.
Returns a 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 a 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.
Alias for defer.
Keeps calling f
until it returns a Right
result.
Keeps calling f
until it returns a Right
result.
Based on Phil Freeman's Stack Safety for Free.
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.
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.