Package ghidra.debug.api.progress

# Interface CloseableTaskMonitor

All Superinterfaces:
  `AutoCloseable`, `TaskMonitor`

public interface CloseableTaskMonitor extends TaskMonitor, AutoCloseable
A task monitor that can be used in a try-with-resources block.

- ## Field Summary

  ### Fields inherited from interface ghidra.util.task.TaskMonitor

  `DUMMY, NO_PROGRESS_VALUE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `reportError(Throwable error)`
  Report an error while working on this task

  ### Methods inherited from interface ghidra.util.task.TaskMonitor

  `addCancelledListener, cancel, checkCanceled, checkCancelled, clearCanceled, clearCancelled, getMaximum, getMessage, getProgress, increment, increment, incrementProgress, incrementProgress, initialize, initialize, isCancelEnabled, isCancelled, isIndeterminate, removeCancelledListener, setCancelEnabled, setIndeterminate, setMaximum, setMessage, setProgress, setShowProgressValue`

- ## Method Details

  - ### close

    void close()
    Specified by:
      `close` in interface `AutoCloseable`

  - ### reportError

    void reportError(Throwable error)
    Report an error while working on this task
    Parameters:
      `error` - the error