A value the interface can read and follow. subscribe calls the listener with the current value at once and again on every change, and returns a function that stops it.
subscribe
Returns the current value.
Calls listener with the current value now and on every change.
listener
Receives the value.
A function that stops the listener.
A value the interface can read and follow.
subscribecalls the listener with the current value at once and again on every change, and returns a function that stops it.