MCPcopy Create free account
hub / github.com/alignoth/alignoth / subflow

Function subflow

resources/vega.min.js:6127–6143  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

6125 this._targets[this._targets.active++] = t;
6126 },
6127 subflow(t, e, n, r) {
6128 const i = this.value;
6129 let o,
6130 a,
6131 s = ut(i, t) && i[t];
6132 return (
6133 s
6134 ? s.value.stamp < n.stamp && (s.init(n), this.activate(s))
6135 : ((a = r || ((a = this._group[t]) && a.tuple)),
6136 (o = n.dataflow),
6137 (s = new Mu(n.fork(n.NO_SOURCE), this)),
6138 o.add(s).connect(e(o, t, a)),
6139 (i[t] = s),
6140 this.activate(s)),
6141 s
6142 );
6143 },
6144 clean() {
6145 const t = this.value;
6146 let e = 0;

Callers

nothing calls this directly

Calls 3

eFunction · 0.85
utFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected