Initializer

rescala.core.Initializer
trait Initializer[S[_]]

An initializer is the glue between that binds the creation of the reactive from the operator and scheduler side together. The operator provides the logic to wrap a state and the scheduler provides the implementation of that state. This is where the two are joined. After that, the new reactive may have to be initialized.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def initialize(reactive: of[S], incoming: Set[of[S]], needsReevaluation: Boolean): Unit

to be implemented by the propagation algorithm, called when a new reactive has been instantiated and needs to be connected to the graph and potentially reevaluated.

to be implemented by the propagation algorithm, called when a new reactive has been instantiated and needs to be connected to the graph and potentially reevaluated.

Value parameters

incoming

a set of incoming dependencies

needsReevaluation

true if the reactive must be reevaluated at creation even if none of its dependencies change in the creating turn.

reactive

the newly instantiated reactive

Attributes

protected def makeDerivedStructState[V](initialValue: V): S[V]

Creates the internal state of rescala.core.Deriveds

Creates the internal state of rescala.core.Deriveds

Attributes

Concrete methods

protected def makeSourceStructState[V](initialValue: V): S[V]

Creates the internal state of ReSources

Creates the internal state of ReSources

Attributes

protected def register[V](reactive: of[S], inputs: Set[of[S]], initValue: V): Unit

hook for schedulers to globally collect all created resources, usually does nothing

hook for schedulers to globally collect all created resources, usually does nothing

Attributes