The type of the value held by the signal.
Read the current value.
Store a new value. Subscribers run only if the value actually changed.
Subscribe to change notifications. Returns a function that unsubscribes.
Notify subscribers without changing the value. Use it after mutating structural
data in place, which set cannot detect.
Description
The read/write/subscribe surface shared by every signal. SignalBox adds the ergonomic wrappers on top of this.
Example