A task queue based on a directed acyclic graph that allows you to specify dependencies for concurrent tasks.
```rust use futures::future; use futures_dagtask::TaskGraph;
let mut graph = TaskGraph::new();
let zero = graph.addtask(&[], future::ready::
let (add, exec) = graph.execute();
// spawn(exec.for_each(drop));
let three = add.addtask(&[two], future::ready(3)).await?; ```
In this example, zero
and one
will be executed concurrently,
but two
will be executed after one
is completed.
Due to the simplicity of design, we will never have circular dependencies.
This project is licensed under the MIT license.