Package ghidra.util.task

# Class CompoundTask

java.lang.Object
ghidra.util.task.Task
ghidra.util.task.CompoundTask

All Implemented Interfaces:
  `MonitoredRunnable`

public class CompoundTask extends Task
Combines multiple Tasks into a single task. All tasks should have the same cancel, progress, and modality.

- ## Field Summary

  ### Fields inherited from class ghidra.util.task.Task

  `taskMonitor, waitForTaskCompleted`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CompoundTask(Task[] tasks, String title)`
  Create a CompoundTask from an array of tasks.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `run(TaskMonitor monitor)`
  The task run method

  ### Methods inherited from class ghidra.util.task.Task

  `addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CompoundTask

    public CompoundTask(Task[] tasks, String title)
    Create a CompoundTask from an array of tasks.
    Parameters:
      `tasks` - the array of tasks.
      `title` - the title for this task.

- ## Method Details

  - ### run

    public void run(TaskMonitor monitor) throws CancelledException
    The task run method
    Specified by:
      `run` in class `Task`
    Parameters:
      `monitor` - The TaskMonitor that will monitor the executing Task
    Throws:
      `CancelledException` - if any task is cancelled