vega/vega-dataflow

Run Listener

jhoffswell opened this issue · 1 comments

Add a (private) run listener to perform operations after each pulse.

jheer commented

Added in 08735a9, released in vega-dataflow v2.0.6.

Usage example:

view._onrun = function(view, count, error) { console.log('RUN', view.stamp(), count + ' operators'); };

The first argument is the dataflow instance. Second argument is the number of operators evaluated during pulse propagation. Third argument is the value of any error thrown in the midst of dataflow execution. Note: Do not invoke the run method recursively from within _onrun!