Cell

A cell is the most basic type in FRP. A cell is a changing value (named after the cell in a spreadsheet). Often called a "behavior" in other FRP implementations, the name "cell" was borrowed from Sodium (github.com/SodiumFRP/sodium).

This is the face of a cell. For managing access to the value contained within. For getting the value or pushing or pulling calculation of the value. Not how the value is actually calculated.

The settable cell is a cell where the value is set/managed in non-frp code. A cell func (created with cf) creates a type of cell who's value comes from a calculation with other cells.

Members

Functions

onValueReady
void onValueReady()

Pass on down the line that the currently calculated value is no longer valid.

pull
void pull()

Force this value to be calulated now. (and consequently those that this cell depends on)

push
void push()

Force calculation related to this cell to happen now. (update this cell's value, those this cell depends on, and those that depend on this cell)

Properties

value
T value [@property getter]

Get the value currently within this cell (calculating it if needing) (lazy by default).

Variables

listeners
CellListener[] listeners;
Undocumented in source.

Meta