---
title: "disableExecution(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcplugin/disableexecution(_:)"
---

# disableExecution(_:)

Allows you to perform custom tasks when the execution of the QCPlugIn object is paused.

## Declaration

```swift
func disableExecution(_ context: (any QCPlugInContext)!)
```

## Parameters

- `context`: An opaque object , conforming to the doc://com.apple.quartz/documentation/Quartz/QCPlugInContext protocol, that represents the execution context of the QCPlugIn object. Do not retain this object or use it outside of the scope of this method.

## Discussion

Discussion The Quartz Composer engine calls this method when results are no longer being pulled from the  custom patch. You can optionally override this execution method to perform custom tasks at that time.

## See Also

### Performing Custom Tasks During Execution

- [startExecution(_:)](quartz/qcplugin/startexecution(_:).md)
- [enableExecution(_:)](quartz/qcplugin/enableexecution(_:).md)
- [stopExecution(_:)](quartz/qcplugin/stopexecution(_:).md)
