Skip to main content

with_graph_index

Function with_graph_index 

Source
pub fn with_graph_index<R>(f: impl FnOnce(&QuinIndex) -> R) -> R
Expand description

Run f against a QuinIndex over the current daemon graph, rebuilt only when the graph revision has changed since the last build. This is what graph_resolve (and other index consumers) route through, so a burst of resolves between graph changes shares a single O(n) build.