Creates a new PollingModelState
can be a value factory
Creates a new PollingModelState
can be a promise factory
Creates a new PollingModelState
Private Readonly #postPrivate Readonly #prePrivate Optional #timeoutPrivate Readonly #updatedPrivate Readonly #updatingPrivate #valueGets the current value of the ModelState
Private Readonly #onPrivate Readonly #onProtected getProtected setCreates a subscription to the ModelState that will be called when the state is updated.
Optional preCallback: ((value) => void)A symbol that must saved to unsubscribe from the ModelState
Protected subscribeOptional preCallback: ((value) => void)Returns the ModelState as a Promise
Returns the current value of the ModelState
Generated using TypeDoc
interface for disposable objects