Errored

cats.effect.kernel.Outcome$.Errored
final case class Errored[F[_], E, A](e: E) extends Outcome[F, E, A]

Attributes

Source:
Outcome.scala
Graph
Supertypes
trait Outcome[F, E, A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def embed(onCancel: F[A])(implicit F: MonadCancel[F, E]): F[A]

Attributes

Inherited from:
Outcome
Source:
Outcome.scala
def embedError(implicit F: MonadCancel[F, E], ev: Throwable <:< E): F[A]

Allows the restoration to a normal development flow from an Outcome.

Allows the restoration to a normal development flow from an Outcome.

This can be useful for storing the state of a running computation and then waiters for that data can act and continue forward on that shared outcome. Cancelation is encoded as a CancellationException.

Attributes

Inherited from:
Outcome
Source:
Outcome.scala
def embedNever(implicit F: GenSpawn[F, E]): F[A]

Attributes

Inherited from:
Outcome
Source:
Outcome.scala
def fold[B](canceled: => B, errored: E => B, completed: F[A] => B): B

Attributes

Inherited from:
Outcome
Source:
Outcome.scala

Attributes

Inherited from:
Outcome
Source:
Outcome.scala

Attributes

Inherited from:
Outcome
Source:
Outcome.scala

Attributes

Inherited from:
Outcome
Source:
Outcome.scala
def mapK[G[_]](f: FunctionK[F, G]): Outcome[G, E, A]

Attributes

Inherited from:
Outcome
Source:
Outcome.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product