halcheck 1.0
Loading...
Searching...
No Matches

◆ async() [4/4]

template<typename F , typename T >
lib::dag< lib::invoke_result_t< F, lib::iterator_t< lib::dag< T > > > > halcheck::lib::async ( lib::dag< T > & graph,
F func )

Executes a function on each label in a given graph and stores the results in a graph with the same structure. Calls for unrelated nodes are executed in parallel.

Template Parameters
FThe type of function to execute.
TThe type of label stored in the graph.
Parameters
graphThe graph of functions to execute.
funcThe function to execute.
Returns
A graph with the same structure as the input graph.