Resolve a dependency graph of buffers.
Useful to manage multiple functions that rely on each other, and can recreate assets on the fly through means such as observing filesystem events.
var bufferGraph =var key = Buffervar graph =graph// Triggers when graph.start() is calledgraph// Triggers once first:foo and first:bar have been created. Retriggers if// either dependency changes, and the data has a different hash.graphgraphstart hi: 'kittens'
graph.on('change', name, state)
Emitted whenever an edge in the graph is updated.
graph = bufferGraph()
Create a new
buffer-graph instance. Inherits from Node's
graph.node(name, [dependencies], fn(state, edge, metadata))
Create a new node in the buffer graph.
Start the graph. Can be passed
metadata which is set as
Read out the data from the graph.
Read out the metadata from the graph.