Table of contents
Bud.TaskGraph helps you build dependency graphs of actions and execute them asynchronously and in parallel.
using Bud;
var taskA = new TaskGraph(() => Console.WriteLine("A"));
var taskB = new TaskGraph(() => Console.WriteLine("B"));
var taskC = new TaskGraph(() => Console.WriteLine("C"), taskA, taskB);
// This function blocks. It runs A and B in parallel first, and then C.
taskC.Run();
// Asynchronous version of Run():
await taskC.RunAsync();