Type holded by the observer.
Constructor for observable.
Type holded by the observer.
Initial value to observe.
Overloadable by extending Observable. Called after change is made.
Overloadable by extending Observable. Called after change is made.
If false is returned, listeners will not be called.
Overloadable by extending Observable. Called before any change is made, can cancel update process.
If false is returned, change is cancel and listeners wont be called.
Async function that resolve as soon as the observed value is changed.
Time before timeout is triggered. If 0, the function will not timeout. Default to 0.
If true, timeout will throw with Error("Observable: Timeout on change"). If false, timeout will resolve with null. Default to false.
The promise reolving on value change.
Return currently hold value.
Currently hold value.
Listen for nay change in observed value. Callback is called each time value is changed.
Callback function called when the observed value change. Called with the new value as only parameter.
A function to cancel this listener.
Change currently hold value.
Value to set in the observer.
Generated using TypeDoc
Observable class. Usefull to make a variable calling asynchronous listener when changed.
Valentin Vivier