spork/ev-utils/pdag
spork
function
/usr/local/lib/janet/spork/ev-utils.janet on line 113, column 1
(pdag f dag &opt n-workers)
Executes a dag by calling f on every node in the graph. Can set the
number of workers for parallel execution. The graph is represented
as a table mapping nodes to arrays of child nodes. Each node will
only be evaluated after all children have been evaluated. Modifying
`dag` inside `f` will not affect the scheduling of workers. Returns
a table mapping each node to the result of `(f node)`.