package producer

  1. Overview
  2. Docs

Encapsulated graph of producer nodes.

type ('context, 'output1, 'output2) t = {
  1. execute : 'context -> ('output1, 'output2) M.t;
}
val make : ('context, 'output1, 'output2) Node.t -> ('context, 'output1, 'output2) t

make nodes output_node creates a Graph.t out of the given nodes, marking output_node as the Node which produces the graph's output.

  • raises [Cyclic]

    if a dependency cycle is found somewhere within the graph.

OCaml

Innovation. Community. Security.