@Override
	public void run(TaskMonitor monitor) throws CancelledException {
		TaskMonitor[] subMonitors = TaskMonitorSplitter.splitTaskMonitor(monitor, tasks.length);
		for (int i = 0; i < tasks.length; i++) {
			tasks[i].run(subMonitors[i]);
		}
	}
The task run method

@throws CancelledException if any task is cancelled
Ghidra/Framework/Gui/src/main/java/ghidra/util/task/CompoundTask.java