Readonlydisposed
Indicates whether the Readable has been disposed.
Get current value.
Optional Readonlyname
Set new value
Current value of the Writable
Readonlyversion
A version representation of the value. If two versions of a $ is not equal(Object.is), it
means the value has changed (event if the value is equal).
Subscribe to value changes without immediate emission.
Optionalscheduler:
Scheduler
Optional scheduler to control when the subscriber is called.
a disposer function that cancels the subscription
Subscribe to value changes with immediate emission.
Optionalscheduler:
Scheduler
Optional scheduler to control when the subscriber is called.
a disposer function that cancels the subscription
Remove the given subscriber or all subscribers if no subscriber is provided.
Optionalsubscriber:
(...args:
any[]) =>
any
Optional subscriber function to remove.
Optionalscheduler:
Scheduler
Optional scheduler associated with the subscriber. If not provided, all subscribers will be removed.
A Writable is a Readable with a writable
valueproperty and asetmethod that updates the value.