Failed

final case class Failed[A](error: A) extends Task[A, Nothing]

A task that failed with the given error

trait Serializable
trait Product
trait Equals
trait Task[A, Nothing]
class Object
trait Matchable
class Any

Value members

Inherited methods

def attempt[Msg](toMessage: Either[A, Nothing] => Msg): Cmd[Msg]

Turns this task into a command by transforming errors and successful values according to the f function

Turns this task into a command by transforming errors and successful values according to the f function

Inherited from:
Task
def flatMap[Success2, Err2 >: A](f: Nothing => Task[Err2, Success2]): Task[Err2, Success2]

Sequentially applies this task and then another task given by the function f

Sequentially applies this task and then another task given by the function f

Inherited from:
Task
def map[Success2](f: Nothing => Success2): Task[A, Success2]

Transforms successful values

Transforms successful values

Inherited from:
Task
def perform[Err2 >: A](using Err2 =:= Nothing): Cmd[Nothing]

Turns this task (that never fails) into a command

Turns this task (that never fails) into a command

Inherited from:
Task
def product[Success2, Err2 >: A](that: Task[Err2, Success2]): Task[Err2, (Nothing, Success2)]

Combines to tasks in parallel

Combines to tasks in parallel

Inherited from:
Task
Inherited from:
Product