macro_rules! taskgraph {
($storage:expr, [ $($name:expr => $job:expr $(, deps: [$($dep:ident),*])? );* $(;)? ]) => { ... };
}Expand description
A declarative macro to build a task graph. Example: let mut graph = StaticGraph::<10>::new(StaticStore::new()); let a = task_node!(graph, “A”, job_a); let b = task_node!(graph, “B”, job_b, deps: [a]);