MCPcopy Create free account
hub / github.com/microsoft/SandDance / finish

Function finish

docs/app/js/sanddance-app.js:135638–135649  ·  view source on GitHub ↗
(_, pulse)

Source from the content-addressed store, hash-verified

135636 return this.finish(_, pulse);
135637 },
135638 finish (_, pulse) {
135639 const dataflow = pulse.dataflow; // inspect dependencies, touch link source data
135640 for(let args = this._argops, j = 0, m = args.length, arg; j < m; ++j){
135641 arg = args[j];
135642 if (arg.name !== Forces || arg.op._argval.force !== "link") continue;
135643 for(var ops = arg.op._argops, i = 0, n = ops.length, op; i < n; ++i)if (ops[i].name === "links" && (op = ops[i].op.source)) {
135644 dataflow.pulse(op, dataflow.changeset().reflow());
135645 break;
135646 }
135647 } // reflow all nodes
135648 return pulse.reflow(_.modified()).modifies(ForceOutput);
135649 }
135650});
135651function rerun(df, op) {
135652 return ()=>df.touch(op).run();

Callers

nothing calls this directly

Calls 1

annotateFunction · 0.70

Tested by

no test coverage detected