a callback to run when this Obs is pinged
Whether or not this Reactor is currently alive.
All parents, parent's parents, etc.
All parents, parent's parents, etc. recursively.
Stops this Reactor from listening for updates.
Stops this Reactor from listening for updates. Obss would stop triggering, Rxs would stop updating and propagating. In Scala-JS, this is necessary to allow the Reactor to be garbage collected, while in Scala-JVM this is unnecessary because of weak references.
.kill()
is irreversible.
A number giving an approximate ordering of the current Node in the dataflow graph it is part of.
A number giving an approximate ordering of the current Node in the dataflow graph it is part of.
Vars have it set to 0 and Obs have it set to Long.MaxValue because they're always the root and leaves of the graph. For other Rxs it depends on their location within the dataflow graph, and can change over time if the shape of the graph is changing.
The name of this object, generally passed in as a String
when it is
created.
The list of Emitters which this Reactor is currently bound to.
Manually trigger this observer, causing its callback to run.
An Obs is something that produces side-effects when the source Rx changes. An Obs is always run right at the end of every propagation wave, ensuring it is only called once per wave (in contrast with Rxs, which may update multiple times before settling).