ReevTicket

rescala.core.ReevTicket
final class ReevTicket[S[_], V](tx: Transaction[S], var _before: V, accessHandler: AccessHandler[S]) extends DynamicTicket[S], Result[V]

ReevTicket is given to the Derived reevaluate method and allows to access other reactives. The ticket tracks return values, such as dependencies, the value, and if the value should be propagated. Such usages make it unsuitable as an API for the user, where StaticTicket or DynamicTicket should be used instead.

Attributes

Graph
Supertypes
trait Result[V]
class DynamicTicket[S]
class StaticTicket[S]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

override type State[V] = S[V]

Value members

Concrete methods

override def activate: Boolean

True iff outputs must also be reevaluated, false iff the propagation ends here.

True iff outputs must also be reevaluated, false iff the propagation ends here.

Attributes

Definition Classes
def before: V
override def forEffect(f: Observation => Unit): Unit

No-allocation accessor for the effect caused by the reevaluation.

No-allocation accessor for the effect caused by the reevaluation.

Attributes

Definition Classes
override def forValue(f: V => Unit): Unit

No-allocation accessor for the optional new value.

No-allocation accessor for the optional new value.

Attributes

Definition Classes
override def inputs(): Option[Set[of[State]]]

New input resources. None if unchanged. Otherwise a list of all input reactives to react to.

New input resources. None if unchanged. Otherwise a list of all input reactives to react to.

Attributes

Definition Classes
def reset[NT](nb: NT): ReevTicket[State, NT]
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def trackDependencies(initial: Set[of[State]]): ReevTicket[State, V]

Advises the ticket to track dynamic dependencies. The passed initial set of dependencies may be processed as if they were static, and are also returned in the resulting dependencies.

Advises the ticket to track dynamic dependencies. The passed initial set of dependencies may be processed as if they were static, and are also returned in the resulting dependencies.

Attributes

def withValue(v: V): ReevTicket[State, V]

Inherited methods

final def depend[A](reactive: of[S, A]): A

Attributes

Inherited from:
DynamicTicket
final def dependStatic[A](reactive: of[S, A]): A

Attributes

Inherited from:
StaticTicket