Expand description
UI-6: the signal runtime — no framework. A Signal<T> holds a
value; a binding (Runtime::bind) is a closure that is run once, its
reads of signals tracked, and run again exactly when one of the signals
it read last time is set to a different value. Nothing else re-runs.
Each run tracks afresh, so a binding that reads y only when x holds
is not woken by y while x does not. A binding made while another
runs is its own (its reads are its own); bindings woken together run
oldest first, so an outer binding that disposes an inner one runs before
it. Runtime::untracked reads without tracking.
Single-threaded (the page’s one thread): handles are Rcs.
Structs§
- Binding
Id - A binding’s handle:
Runtime::disposestops it. - Runtime
- The runtime: every signal and binding of one page (or one test).
- Signal
- A value bindings read.