Outcome

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.

Companion
object
class Object
trait Matchable
class Any
class Error
class Result[A]

Value members

Abstract methods

def addGlobalEvents(newEvents: GlobalEvent*): Outcome[A]
def addGlobalEvents(newEvents: => List[GlobalEvent]): Outcome[A]
def ap[B](of: Outcome[A => B]): Outcome[B]
def combine[B](other: Outcome[B]): Outcome[(A, B)]
def createGlobalEvents(f: A => List[GlobalEvent]): Outcome[A]
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: List[GlobalEvent] => List[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