pub trait TaskGroup: Send + 'static {
type Task: Task;
// Required method
fn tasks(self) -> Vec<Self::Task>;
// Provided method
fn launch(self) -> Result<(), Box<dyn Error + Send + Sync>>
where Self: Sized { ... }
}Expand description
A group of tasks executed in parallel.
Implement this on a custom class that manages tasks in a unique way.
The caller only needs to return the vector of tasks; the runtime
handles reporting and the TUI when launch() is called.