You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Spritz, a reactive streaming library, to stream changes into ComputableValue instances. The stream would manually trigger ComputableValue.reportPossiblyChanged() when a new value arrives. This would ultimately allow us to add mechanisms to control when reaction tasks occur. Some obvious candidates include:
minimumDelay: Must wait a minimum time before re-executing
debounceTime: Changes are ignored for a time after executing to avoid frequent changes
throttleTime: Track when executed and reschedule when at least throttleTime has passed. This is similar to minimumDelay, except that the initial run of the function happens immediately.
The component model may need built-in support for this. Perhaps a @StreamingValue could be made up of a stream producing method and a value returning method. (Perhaps this support could be merged into #91 somehow).
Another useful addition may be the ability to push changes from ObservableValue instance and ComputableValue instances into streams. These changes could either be pushed inline within the READ_WRITE transaction or could be pushed as a task passed to the scheduler. This would support several alternative approaches when architecting applications.
The text was updated successfully, but these errors were encountered:
Use Spritz, a reactive streaming library, to stream changes into
ComputableValue
instances. The stream would manually triggerComputableValue.reportPossiblyChanged()
when a new value arrives. This would ultimately allow us to add mechanisms to control when reaction tasks occur. Some obvious candidates include:minimumDelay
: Must wait a minimum time before re-executingdebounceTime
: Changes are ignored for a time after executing to avoid frequent changesthrottleTime
: Track when executed and reschedule when at leastthrottleTime
has passed. This is similar tominimumDelay
, except that the initial run of the function happens immediately.The component model may need built-in support for this. Perhaps a
@StreamingValue
could be made up of a stream producing method and a value returning method. (Perhaps this support could be merged into #91 somehow).Another useful addition may be the ability to push changes from
ObservableValue
instance andComputableValue
instances into streams. These changes could either be pushed inline within theREAD_WRITE
transaction or could be pushed as a task passed to the scheduler. This would support several alternative approaches when architecting applications.The text was updated successfully, but these errors were encountered: