Computable

works.iterative.ui.model.Computable
See theComputable companion object
sealed trait Computable[+Model]

A class representing the states of a model that needs computation

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Computing
class Failed
class Ready[Model]
class Recomputing[Model]
object Uninitialized

Members list

Value members

Abstract methods

def started: Computable[Model]

Mark the computation as started

Mark the computation as started

Attributes

def update[B >: Model](m: B): Computable[B]

Update the computation state with new data

Update the computation state with new data

Attributes

Concrete methods

def fail(error: UserMessage): Computable[Nothing]

Fail the computation

Fail the computation

Attributes

def isComputing: Boolean
def isDefined: Boolean
def isEmpty: Boolean
def isFailed: Boolean
def toOption: Option[A]
Extension method from Computable
def update[B >: Model](m: Validated[B]): Computable[B]