lang: funcs: structs: Update the graph shape docs
This commit is contained in:
@@ -210,17 +210,19 @@ func (obj *CallFunc) Stream(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (obj *CallFunc) replaceSubGraph(newFuncValue *full.FuncValue) error {
|
func (obj *CallFunc) replaceSubGraph(newFuncValue *full.FuncValue) error {
|
||||||
// Create a subgraph which looks as follows. Most of the nodes are
|
// Create a subgraph which looks as follows.
|
||||||
// elided because we don't know which nodes the FuncValues will create.
|
|
||||||
//
|
//
|
||||||
// digraph {
|
// digraph {
|
||||||
// ArgVertices[0] -> ...
|
// ArgVertices[0] -> "fn" # spawned
|
||||||
// ArgVertices[1] -> ...
|
// ArgVertices[1] -> "fn" # spawned
|
||||||
// ArgVertices[2] -> ...
|
// ArgVertices[2] -> "fn" # spawned
|
||||||
//
|
//
|
||||||
// outputFunc -> "callSubgraphOutput"
|
// "fn" -> "callSubgraphOutput" # spawned
|
||||||
|
//
|
||||||
|
// "FuncValue" -> "CallFunc" # fn
|
||||||
|
// "CallFunc" -> "callSubgraphOutput" # dummy
|
||||||
|
// "callSubgraphOutput" -> downstream
|
||||||
// }
|
// }
|
||||||
// XXX
|
|
||||||
|
|
||||||
// delete the old subgraph
|
// delete the old subgraph
|
||||||
if err := obj.init.Txn.Reverse(); err != nil {
|
if err := obj.init.Txn.Reverse(); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user