Errored

final case class Errored[F[_], E, A](e: E) extends Outcome[F, E, A]
trait Outcome[F, E, A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def embed(onCancel: F[A])(implicit F: MonadCancel[F, E]): F[A]
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.

Inherited from:
Outcome
Source:
Outcome.scala
def embedNever(implicit F: GenSpawn[F, E]): F[A]
Inherited from:
Outcome
Source:
Outcome.scala
def fold[B](canceled: => B, errored: E => B, completed: F[A] => B): B
Inherited from:
Outcome
Source:
Outcome.scala
Inherited from:
Outcome
Source:
Outcome.scala
Inherited from:
Outcome
Source:
Outcome.scala
Inherited from:
Outcome
Source:
Outcome.scala
def mapK[G[_]](f: FunctionK[F, G]): Outcome[G, E, A]
Inherited from:
Outcome
Source:
Outcome.scala
Inherited from:
Product