Outcome

indigo.shared.Outcome
See theOutcome companion object
sealed trait Outcome[+A]

An Outcome represents the result of some part of a frame update. It contains a value or an error (exception), and optionally a list of events to be processed on the next frame.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Error
class Result[A]

Members list

Value members

Abstract methods

def addGlobalEvents(newEvents: GlobalEvent*): Outcome[A]
def addGlobalEvents(newEvents: => Batch[GlobalEvent]): Outcome[A]
def ap[B](of: Outcome[A => B]): Outcome[B]
def combine[B](other: Outcome[B]): Outcome[(A, B)]
def flatMap[B](f: A => Outcome[B]): Outcome[B]
def getOrElse[B >: A](b: => B): B
def handleError[B >: A](recoverWith: Throwable => Outcome[B]): Outcome[B]
def isError: Boolean
def isResult: Boolean
def logCrash(reporter: PartialFunction[Throwable, String]): Outcome[A]
def map[B](f: A => B): Outcome[B]
def mapAll[B](f: A => B, g: Batch[GlobalEvent] => Batch[GlobalEvent]): Outcome[B]
def merge[B, C](other: Outcome[B])(f: (A, B) => C): Outcome[C]
def orElse[B >: A](b: => Outcome[B]): Outcome[B]
def unsafeGet: A