futures-dagtask
A task queue based on a directed acyclic graph that allows you to specify dependencies for concurrent tasks.
Usage
use future;
use TaskGraph;
let mut graph = new;
let zero = graph.add_task?;
let one = graph.add_task?;
let _two = graph.add_task?;
let = graph.execute;
// spawn(exec.for_each(drop));
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.
License
This project is licensed under the MIT license.