performTasks method
The raw parallel execution logic. Every task in the collection gets a reference to the same domain-specific context.
Implementation
Future<void> performTasks(C context) async {
// We use Future.wait to ensure the "Fan-Out" is truly parallel.
// The generic <C> ensures that all tasks are compatible with the passed context.
await Future.wait(tasks.map((task) => task.execute(context)));
}